Instead of the results coming down in rows, I want to be able to have it so it will display 9 results in 3 comlumns and 3 rows like I have made my index page here but with an additional row - http://www.thebiggolfstore.com -
I have played around with the script and have managed to get the products to be displayed in columns here - http://www.thebiggolfstore.com/search/search.php?q=Range+Finder - but I cant get it to then move onto a different row after the table width is exceeded or 3 have been displayed!?
Im not sure if this is possible due to how the script calls each record to be displayed but any ideas or suggestions if this is possible would be appreciated
Thanks
Adam
Did anyone end-up doing this for search results?
Hi,
Sure - I have a grid display version of html/searchresults.php, i'll email it to you now.
Cheers,
David.
Hi David,
Is it possible I can get a copy of the grid display searchresults.php too?
Thanks
Darren
Hi Adam,
The trick here is to increment a counter when generating the HTML for each product; and every 3rd product print out "</tr><tr>" to start a new row.
It should be reasonably straight forward - can you post the code you have so far (just the section that starts your table, prints the products and closes the table) and i'll show you what I mean...
You can post to the forum using php tags to get a the color coded syntax highlighting...