June 12th, 2013, 11:18 AM
Grid view in php
Hi guys, i want to know how to create a grid view for the list of products i have stored in mysql database table. the grid should display all data including the picture that is stored as a link in the table.
anyone knows where i can get a tutorial on how to create that?
June 12th, 2013, 01:14 PM
You mean a table? Do a query for whatever you want to show, loop over it, and output the rows into a <table>.
If you're not sure how to do that, I imagine most PHP+database tutorials will cover it at some point (it's a very common thing to do).
June 12th, 2013, 05:21 PM
You mean table? can you give more details?
June 12th, 2013, 05:50 PM
A lot harder to find examples online of this than one would expect, but I finally found this.
But of course it's using mysql_ which is effectively deprecated. You can learn the general flow from this but you'll want to convert to a new extension. More on that here.
June 13th, 2013, 12:55 AM
yes in fact i have a table which stores product details such as product name, details, weight, photo of the product (as a link). i have to create a search by name, by retailer, by lowest price, by highest price. on querying a table should be displayed with the product details. i am looking for such a tutorial...
June 13th, 2013, 04:27 AM
post your code & someone will help you
June 13th, 2013, 08:54 AM
i hv no code at the moment, am just looking for a tutorial
June 17th, 2013, 08:15 AM
Using table you can show database data to the user.Store image path in database so that you can retrieve it.