note 22144 added to function.is-null
| From: | dstone@php.net | Date: | Fri, 07 Jun 2002 22:19:04 +0000 |
| Subject: | note 22144 added to function.is-null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31584@lists.php.net to get a copy of this message | ||
The above example is a little wrong. An empty value is not equivalent to null in mysql. To get not
null in mysql use "... where column is not null"
If you are doing a left join in mysql, no matched entry returns a null, where if you had a matched
entry and were asking about a text field, '' might match, so != '' is different
than is not null
--
http://www.php.net/manual/en/function.is-null.php
http://master.php.net/manage/user-notes.php?action=edit+22144
http://master.php.net/manage/user-notes.php?action=delete+22144
http://master.php.net/manage/user-notes.php?action=reject+22144