i have a table (actual column names)
id | name | image1 | image2 | image3 | image4 | image5 | image6 | image7 etc
2 joe 1.jpg 2.jpg 3.jpg etc
all i simply need to do is select just the entries in image(x) columns & name (there are other column names buti dont want them) so i can display
For example:
select name, image(x) from table where id=2
this should produce an array so i can run through the loop and end up with
name
1.jpg
2.jpg
3.jpg
etc wich i could then echo out? - this must a pretty standard(ish) type query ?
i assuming that i have to assign image with image[0] or something in the loop ?