subnet_rx
12-02-2004, 02:47 AM
<?php if (isset($row['Pic0'])) {echo '<img src="images/listings/'.$row['ListingID'].'/thumbs/'.$row['Pic0'].'" />'; }?>
Eventhough the database doesn't have a value for 'Pic0', this is still printing. At the point where it prints $row['Pic0'], nothing prints. The var_dump shows:
["Pic0"]=> string(0) "" [34]=> string(0) ""
Eventhough the database doesn't have a value for 'Pic0', this is still printing. At the point where it prints $row['Pic0'], nothing prints. The var_dump shows:
["Pic0"]=> string(0) "" [34]=> string(0) ""