Do you think it would be possible to add the contents of the field (1, 2, 3, 4, 5) to an array and then loop out the numbers? Maybe use the explode function?
I’m trying to determine whether or not the contents of a field can be manipulated.
I wouldn’t save the full path. Just the image name. And yes you can put this into a string separated by “,” or “|” which you can then explode.
1.jpg|2.jpg|3.jpg|4.jpg|5.jpg
So say you have some images and are going to add another. You can build an array for current images by querying record and explode that field.
Add the new image to this array, then implode the array to build the string again and update your table.