Re: Differences in arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Mike Smith <mikeosmith@xxxxxxxxx> wrote:

> How about:
> 
> 
> if ( is_array($_SESSION['schools'] ) ) {
> foreach($_SESSION['schools'] as $h) {
> If($h!=""){ //First added line
> $query = "INSERT INTO Prof_Schools (ProfID, School)
> VALUES ('$LID', '$h')";
> $res6 = run_query($query);
> echo $query;
> } //End added line
>        }
> }
Yes, I did that and it works correctly now. I was
tryin g to better understand why the difference in the
behaviour.  

Stuart

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux