I have a PHP variable like this:
<?php echo($row['PHOTO_URL']); ?>
I have another variable like this that signifies the amount of photos:
The actual photo URL looks like this:
When the PHOTO_QUANTITY is any value more than one, it means a new URL starting with a _2.jpg and so forth is appended to the PHOTO_URL like this:
How do create an IF statement or something along those lines that uses the PHOTO_QUANTITY value to display thumbnails of these photos dynamically. The PHOTO_QUANTITY is not constant so hardcoding will not work.