RE: [PHP] Can you use null?

From: Date: Thu, 28 Mar 2002 13:56:41 +0000
Subject: RE: [PHP] Can you use null?
Groups: php.general 
Request: Send a blank email to php-general+get-90516@lists.php.net to get a copy of this message
you test for a NULL value with PHP's isset() function. if( ! isset($image_name) ) { ... display no image ... } -----Original Message----- From: Chuck "PUP" Payne [mailto:cepayne@magidesign.com] Sent: Wednesday, March 27, 2002 9:32 PM To: PHP General Subject: [PHP] Can you use null? I am wanting to know if I can use null to call up an image? I am writing a page that talks to calls to a database for cars. There a field where calls on photo names, but if someone doesn't have a photo. Mysql puts null, I want to be able to use that null to call an image. ---------------------------- | Chuck Payne | | Magi Design and Support | | www.magidesign.com | | cepayne@magidesign.com | ---------------------------- BeOS, Macintosh 68K, Classic, and OS X, Linux Support. Web Design you can afford. "Never be bullied into silence. Never allow yourself to be made a victim. Accept no one's definition of your life; define yourself."- Harvey Fierstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#90516) next »