SV: [PHP] Null values

From: Date: Wed, 19 Jun 2002 20:48:16 +0000
Subject: SV: [PHP] Null values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103016@lists.php.net to get a copy of this message
I would use empty() if(!empty($row['blah'])) ________________ Mattias Eriksson > -----Ursprungligt meddelande----- > Från: James Drabb [mailto:JDrabb@darden.com] > Skickat: den 19 juni 2002 22:43 > Till: Php-General (E-mail) > Ämne: [PHP] Null values > > Hey *, > > What is the best way to check for a null value returned by a DB. > Would something like if ($row['fldUserName'] != False) be reliable > enough? > > Jim Drabb > > -- > ------------------------------------------------------------- > Never ask a geek why, just nod your head and slowly back away > ------------------------------------------------------------- > James Drabb JR > Programmer Analyst > Darden Restaurants > Business Systems > JDrabb@Darden.com > JDrabb@cfl.rr.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#103016) next »