On Thursday 24 January 2002 12:34, [EMAIL PROTECTED] 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
*/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]