It is probably worth pointing out that the array elements will actually be of type string, OR NULL if the field is null in the database.

Thus, either use a double equal comparison to look for empty or null

Or, use a triple equal comparison to be able to distinguish the two cases

e.g.

if ($field === '') echo "Empty, not NULL\n";

if ($field === NULL) echo "NULL\n";

if ($field == '') echo "Empty or NULL\n";
----
Manual Page -- [url]http://www.php.net/manual/en/function.mysql-fetch-row.php[/url]
Edit Note -- [url]http://master.php.net/manage/user-notes.php?action=edit+33981[/url]
Delete Note -- [url]http://master.php.net/manage/user-notes.php?action=delete+33981&report=yes[/url]
Reject Note -- [url]http://master.php.net/manage/user-notes.php?action=reject+33981&report=yes[/url]