Re: Array and insert statement throws error

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

 



Actually it did just loop.  I need to test again.  

The insert statement is the the one $query = 
So it's after yes, but contained in the braces, like
you diagram below.

Stuart
--- "Matt M." <h.dudeness@xxxxxxxxx> wrote:

> where is your insert statement? I am guessing it is
> after your loop
> 
> 
> if ( is_array( $_SESSION['l_industry'] ) ) {
> 	foreach ( $_SESSION['l_industry'] as $p ) {
> 		$query = "INSERT INTO Profiles_Industries
> (ProfileID,IndID) VALUES
> ($LID, $p)";
> /********************This is where your insert
> statement should
> be**********************/
> 	} //foreach ( $_SESSION['l_industry'] as $p )
> } //if ( is_array( $_SESSION['l_industry'] ) )
> 

-- 
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