Re: Array and insert statement throws error

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

« previous php.db (#36836) next »