I need code to generate a fixed list of 10 data variables each separated by an opening and closing ^.
The data is to be pulled off table of images where the picture id (pid) matches.
If there are less than 10 images the code should generate still generate the opening and closing symbols ^^
I have the code to pull the data in the correct format, but it only writes code where there is fields in the table - so if there are only 4 images it writes 4 lines.
^[url removed, login to view]^[url removed, login to view]^[url removed, login to view]^
Simple job, but I can't get it to work!!
I attach my php code and the html it generates.
I also tried an alternative based on pullingoff the $i and defining 10 lines of code, but had errors such as it bulling the data off other records if there were no images.