if $logo == "0" do this
Posted: Sun Aug 28, 2005 2:16 pm
Hi Guys,
I am trying to display logos on my page but some of the records do not have logos and this has placed a "0" in my db.
I have tried using this but with no luck
<?php
$nothing = "0";
{
if ($logo == $nothing){
$logo = "nopic.jpg";
} else {
$logo = $logo;
}
} ?>
Does anyone know how to achieve this?
Thanks
I am trying to display logos on my page but some of the records do not have logos and this has placed a "0" in my db.
I have tried using this but with no luck
<?php
$nothing = "0";
{
if ($logo == $nothing){
$logo = "nopic.jpg";
} else {
$logo = $logo;
}
} ?>
Does anyone know how to achieve this?
Thanks