Re: displaying images

From: Date: Thu, 24 Jan 2002 03:30:07 +0000
Subject: Re: displaying images
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16135@lists.php.net to get a copy of this message
On Thursday 24 January 2002 12:34, mike@wkla.com wrote: > Hello, > > I'm storing image URLs in a varchar text field for items in my database. > The problem is not all the items in the database have images, so when i do > a query that displays multiple results some have images and some have the > nasty red Xs. Is there a way do some kind of IF statement. If the image url > is there, display image if not display No picture available or something > like that? Yes. if ($image) { display_url(); } else { echo "No image"; } -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* What is irritating about love is that it is a crime that requires an accomplice. -- Charles Baudelaire */

« previous php.db (#16135) next »