[thelist] is_null php
Chris W. Parker
cparker at swatgear.com
Tue Jul 29 18:41:23 CDT 2003
Tom Dell'Aringa <mailto:pixelmech at yahoo.com>
on Tuesday, July 29, 2003 3:54 PM said:
> I have a NULL date value in my mySQL table. I want to test and see
> whether it has a date or its null, a simple if condition. If it is
> not null, i want to print out a variable.
>
> For some reason I can't get it to work. I tried:
Maybe you should change from looking for NULL to looking for empty() and
store "" in the blank/NULL fields. (I only suggest this because I have
never tried to use NULL and I don't understand what it means completely
so I just don't bother with it.)
Chris.
More information about the thelist
mailing list