allydm Posted November 9, 2006 Share Posted November 9, 2006 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 More sharing options...
trq Posted November 9, 2006 Share Posted November 9, 2006 this is covered in a thread within the FAQ/Code snippet repository, [url=http://www.phpfreaks.com/forums/index.php/topic,95426.0.html]here[/url]. Link to comment https://forums.phpfreaks.com/topic/26703-displaying-mysql-results/#findComment-122164 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.