Hi guys
I am having a bit of a problem figuring out how to display random amounts of pictures
I allow people to upload up to 5 photos to my website. I store the file name in a database and the actual photos seperately.
At the moment i am displaying the photos using the following code.
Print "<td class=border width=20% valign=top rowspan=2 ><img src=http://www.propertyadsdirect.com/images/".$info['pic'] ."></a> <br>";
Print "<img src=http://www.propertyadsdirect.com/images/".$info['pic2'] ."></a> <br>";
Print "<img src=http://www.propertyadsdirect.com/images/".$info['pic3'] ."></a> <br>";
Print "<img src=http://www.propertyadsdirect.com/images/".$info['pic4'] ."></a> <br>";
Print "<img src=http://www.propertyadsdirect.com/images/".$info['pic5'] ."></a> <br>";
Print "</td >";
However if the user has not uploaded the full 5 photos a image is displayed in its place to indicate that an image is supposed to be there. How can I check that a photo is present and if not stop the site displaying this other image.
Many thanks for your help.










Bookmarks