Re: Array and insert statement throws error

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

 



> if ( is_array( $_SESSION['l_industry'] ) ) {
>         foreach ( $_SESSION['l_industry'] as $p ) {
> $query = "INSERT INTO Profiles_Industries (ProfileID,
> IndID)
> VALUES ($LID, $p)";
> }

do you have a } for the if statement?

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux