I have a thumbnail pic that allows you to click on it for additional pictures. That will take you to an html file that contains the additional pics. I created a php command that will pass the item_number to a php file that will dynamically create the additional pics page. This way, some work has been cut out.
The problem is that I will sometimes have 2, 4, 6, 8 additional pictures. All pics are named the same item_number-1.jpg, item_number-2.jpg--where the item_number is dynamic [but the same for every pic on the page], and the "1", "2", etc. is for each picture. Is there a way to check to see if the next picture number jpg exists in the folder, and stop if it doesn't? This way the page will be OK for any number of pictures.
I would rather not have different php files for the different number of pictures.
|