Jump to content

Displaying MySQL Results


allydm

Recommended Posts

Hi people.

Basically, i'm building a gallery which pulls 9 images per page. I've coded the pages so that 9 results are displayed per page and thats all working marvelous. However at the moment they're all one after the other going vertically down the page via a loop. I'd like to make it look nicer, by creating a 3 x 3 table and having the results display in the box.

Heres an image of what i'd like to achieve.

[img]http://www.allydm.co.uk/images/demo1.jpg[/img]

I'm not sure how to go about doing this, have any of you got any ideas? I started off with two loops, one going horizontally while the other goes down vertically however that got messy and didn't work.

Thanks for any suggestions.

Alex
Link to comment
https://forums.phpfreaks.com/topic/26703-displaying-mysql-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.