Re: Differences in arrays
| From: | Mike Smith | Date: | Thu, 02 Dec 2004 11:39:03 +0000 |
| Subject: | Re: Differences in arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203331@lists.php.net to get a copy of this message | ||
How about:
if ( is_array($_SESSION['schools'] ) ) {
foreach($_SESSION['schools'] as $h) {
If($h!=""){ //First added line
$query = "INSERT INTO Prof_Schools (ProfID, School)
VALUES ('$LID', '$h')";
$res6 = run_query($query);
echo $query;
} //End added line
}
}