note 10728 deleted from function.mysql-fetch-array by betz
| From: | betz@php.net | Date: | Wed, 05 Oct 2005 11:32:16 +0000 |
| Subject: | note 10728 deleted from function.mysql-fetch-array by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96426@lists.php.net to get a copy of this message | ||
Note Submitter: sean at kungfudesign dot com
----
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
...
}