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
Hi,
Just do a test on the result of the image URL field, and if the field value
is null (or ), change the field to a default image URL...
?
if($myrow[image_url] == or $myrow[image_url] == null)
{
$myrow[image_url] = images/default_image.gif;
}
echo IMG SRC=\.$myrow[image_url].\;
2 matches
Mail list logo