Re: Array and insert statement throws error
| From: | Stuart Felenstein | Date: | Fri, 15 Oct 2004 20:49:15 +0000 |
| Subject: | Re: Array and insert statement throws error | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36837@lists.php.net to get a copy of this message | ||
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@gmail.com> 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'] ) )
>