jwwceo Posted August 26, 2006 Share Posted August 26, 2006 I am looking for a tutorial on building a product gallery where products are diplayed in a grid format, like this [url=http://www.bustedtees.com]www.bustedtees.com[/url]. I mostly need to know how to get the search results to display 4 across. Right now, I can just get them to make a big list, where each entry is a row in a table....Are there any tutorials on this online anywhere..or anyone have any tips on how to do this.... Link to comment https://forums.phpfreaks.com/topic/18755-looking-for-a-good-tutorial/ Share on other sites More sharing options...
ronverdonk Posted August 26, 2006 Share Posted August 26, 2006 Make a table with 4 <td> per row, like this:[code]<table width='100%'><tr><td><img src=image1></td><td><img src=image2></td><td><img src=image3></td><td><img src=image4></td></tr><tr><td><img src=image1></td><td><img src=image2></td><td><img src=image3></td><td><img src=image4></td></tr></table>[/code]Only make sure the size of 4 images fit onto one table row.Ronald 8) Link to comment https://forums.phpfreaks.com/topic/18755-looking-for-a-good-tutorial/#findComment-80902 Share on other sites More sharing options...
jwwceo Posted August 26, 2006 Author Share Posted August 26, 2006 The HTML is easy....I need tips on the php part... Link to comment https://forums.phpfreaks.com/topic/18755-looking-for-a-good-tutorial/#findComment-80904 Share on other sites More sharing options...
AndyB Posted August 26, 2006 Share Posted August 26, 2006 [quote author=jwwceo link=topic=105754.msg422567#msg422567 date=1156631126]I need tips on the php part...[/quote]start a new table rowset a column counter to zerocreate a table data cell, insert content, close table data cellincrement the column counterif the column counter=4 close the table rowcontinue ... Link to comment https://forums.phpfreaks.com/topic/18755-looking-for-a-good-tutorial/#findComment-80906 Share on other sites More sharing options...
ronverdonk Posted August 26, 2006 Share Posted August 26, 2006 Would be a lot easier when you explained what the problem is. Just "I need tips on the php part..."doesn't say very much on what exactly you are looking for.Ronald 8) Link to comment https://forums.phpfreaks.com/topic/18755-looking-for-a-good-tutorial/#findComment-80909 Share on other sites More sharing options...
jwwceo Posted August 26, 2006 Author Share Posted August 26, 2006 Thank you Andy...that was way easier than I thought it would be.... Link to comment https://forums.phpfreaks.com/topic/18755-looking-for-a-good-tutorial/#findComment-80934 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.