I have a database field with a string (like photo.jpg) and im trying to make it so that if that field is blank, a different image will display.
for some reason, this evaluates to true even if I delete the content in that field.PHP Code:if(isset($row['photo1'])) {
$image = "<img src=\"/masterasp/providers/images/".$row['id']."/".$row['photo1']."\" border=\"0\">";
} else {
$image = "<img src=\"/masterasp/providers/images/default.jpg\" border=\"0\">";
}
How do fix this?



Reply With Quote
Bookmarks