note 75108 deleted from function.mysql-fetch-assoc by mazzanet

From: Date: Sun, 27 May 2007 09:33:26 +0000
Subject: note 75108 deleted from function.mysql-fetch-assoc by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-126944@lists.php.net to get a copy of this message
Note Submitter: frans at reijnhoudt dot nl ---- Correction to function mysql_fetch_assoc_improved below: <?php if (isset($first_fields[$field->name])) { //this is not the first field with this name ?> must be <?php if (array_key_exists($field->name, $first_fields)) { //this is not the first field with this name ?> because isset() will return FALSE if testing a variable that has been set to NULL...

« previous php.notes (#126944) next »