I am display three images if the name is in a db. Sometimes, it may not be in the database. I need to know how I can display images only if a name is available.
Would this be some sort of if statement? Here is what I am doing and it displays broken images, (with red X) if the file does not exsist.
<?
//Picture1
?>
<a href="http://www.xxx.net/propimages/featured/<? echo $row[Idf]; ?>/<? echo $row[picture_name];?>" target="_blank">
<img border=0 src="http://www.xxx.net/propimages/featured/<? echo $row[Idf]; ?>/<? echo $row[picture_name];?>" width="78" height="57"> </a>
<?
//picture 2
?>
<a href="http://www.xxx.net/propimages/featured/<? echo $row[Idf]; ?>/<? echo $row[picture2_name];?>" target="_blank">
<img border="0" src="http://www.xxx.net/propimages/featured/<? echo $row[Idf]; ?>/<? echo $row[picture2_name]; ?>" width="78" height="57">
</a>
<?
//picture 3
?>
<a href="http://www.xxx.net/propimages/featured/<? echo $row[Idf]; ?>/<? echo $row[picture3_name];?>" target="_blank">
<img border="0" src="http://www.xxx.net/propimages/featured/<? echo $row[Idf]; ?>/<? echo $row[picture3_name]; ?>" width="78" height="57">
</a>