note 10728 added to mysql_fetch_array

From: Date: Fri, 19 Jan 2001 05:18:06 +0000
Subject: note 10728 added to mysql_fetch_array
Groups: php.notes 
Request: Send a blank email to php-notes+get-9953@lists.php.net to get a copy of this message
If NULL fields are not returned then the hash will not be set. You can just check it like so: if (isset($row["FirstName"})) { $first_name = $row["FirstName"]; } else { // FirstName is NULL ... } http://www.php.net/manual/en/function.mysql-fetch-array.php

« previous php.notes (#9953) next »