Hi,
I have some fields in my db tables defaulting to NULL, and I'm wondering what's the difference between setting the defualt to null or setting it to nothing (empty string). I have a tested the NULL value (let's say the $fieldvalue is the field that has the value NULL and I pulled it out of the db with mysql_fetch_assoc) with the following:
if($fieldvalue == NULL)
as well as with
if(is_null($fieldvalue))
and
if($fieldvalue == "")
and finally
if(empty($fieldvalue))
and it's always the third or fourth if that executes. So the NULL field behaves like an empty string which wasn't my intention and I don't get it.. Is there any other way of testing for null that i'm not aware of?