Because, as a dope, I forget that you can invert IF statements like that -- you're right, I'd rather do that than mess with the array.
Although the feedback on unset($arrayname['index']) was extremely useful knowledge! Thank you everyone. Erik On Friday, January 11, 2002, at 12:31 PM, Rasmus Lerdorf wrote: > Why not just add a simple check inside that while loop? > > if($temprow['div_id'] != $home_div_id) > echo "<option value=\"" . $temprow['div_id'] > . "\">" . $temprow['div_name'] . "</option>\n"; > > > Seems more logical to me than to mess with the array itself. > > -Rasmus > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]