Re: Array and insert statement throws error

From: Date: Fri, 15 Oct 2004 20:25:19 +0000
Subject: Re: Array and insert statement throws error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36832@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)"; > } do you have a } for the if statement?

« previous php.db (#36832) next »