Re: Array and insert statement throws error
| From: | Matt M. | Date: | Fri, 15 Oct 2004 20:36:30 +0000 |
| Subject: | Re: Array and insert statement throws error | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36834@lists.php.net to get a copy of this message | ||
if ( is_array( $_SESSION['l_industry'] ) ) {
foreach ( $_SESSION['l_industry'] as $p ) {
$query = "INSERT INTO Profiles_Industries (ProfileID,IndID) VALUES
($LID, $p)";
} //foreach ( $_SESSION['l_industry'] as $p )
} //if ( is_array( $_SESSION['l_industry'] ) )