Is there a way to differentiate between a NULL value and a (non-NULL) zero (0) value returned from a MySQL call.
Put another way:
I've got a MySQL table which allows NULL entries in cells. Thus, some cells will have non-zero numeric values, zero (0) numeric values, or a lack of any value (NULL).
I access the table via PHP in the usual fashion, but when reading and parsing the results (usually via the mysql_fetch_array function), The NULL values are equivalent to non-NULL zero values.
Is there a way to distinguish between a zero value and a NULL value returned to PHP from a MySQL call?
Your help is appreciated.
Put another way:
I've got a MySQL table which allows NULL entries in cells. Thus, some cells will have non-zero numeric values, zero (0) numeric values, or a lack of any value (NULL).
I access the table via PHP in the usual fashion, but when reading and parsing the results (usually via the mysql_fetch_array function), The NULL values are equivalent to non-NULL zero values.
Is there a way to distinguish between a zero value and a NULL value returned to PHP from a MySQL call?
Your help is appreciated.