I have set up a simple MySQL/php process for uploading stuff to Ebay or whatever.
Everything works fine with this exception:
The number of images available varies per listing and I would like to have php determine if an image exists and either use it or put something boilerplate in it's place.
The primary key of the db is pk_media so I save the images as pk_media.1, pk_media.2, etc.
here is the code that call up the image for image ...".2":
<img src="http://www.blackswampaudio.com/Images/Media/
<? echo $id; ?>.2.jpg" width="400" border="3" align="right" />
Here is what happens (3rd image down) when the image isn't there:
Example Media page
So is there a way to find out if that image exists so I can add an if statement for the above code?
Thanks in advance, this place has been more help than you can realize!!!
Brad