RE: [PHP] Can you use null?

2002-03-28 Thread Rick Emery
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

Re: [PHP] Can you use null?

2002-03-27 Thread Justin French
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].\;