I'm returning a number of image galleries from my table.
Each field contains code in the following format:
Row one might have a field with:
<img src="images/wine/1.jpg" alt="" />
<img src="images/wine/2.jpg" alt="" />
Row two might have a field with:
<img src="images/beer/1.jpg" alt="" />
<img src="images/beer/2.jpg" alt="" />
Instead of having the full image source code in each field, is it possible to just have the image numbers in the field like so:
1, 2, 3, 4, 5
I have already defined the path to where the images are located - $row['folder']. Now I just want to loop out the numbers in the image column.
<?php print'<img src="'.$row['folder'].''.$row['image'].'.jpg" alt="" />';?>
Don't know if this is possible...
Thank you for your help!