Jump to content

php-mysql mysql_fetch_array(), retrieve null value


voodoochicken

Recommended Posts

hi, suppose i make a fetch array on a row, and a value on that row is not defined yet, something like$row=mysql_fetch_array($some_pointer);now there is a field in row that is not been defined, how is this validated? for exampleif ($row['some_field']==false) { echo "this value is not defined for this row";}would this work? does 'isset()' work to test null values?tnx

Link to comment
Share on other sites

if ($row['some_field'] == null) {echo "this value is not defined for this row";}

That should work.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...