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:[EMAIL PROTECTED]]
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  |
 |       |

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 (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to