#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    30
    Rep Power
    0

    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?
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,962
    Rep Power
    9397
    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).
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    Table


    You mean table? can you give more details?
  6. #4
  7. No Profile Picture
    Dazed&Confused
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2002
    Location
    Tempe, AZ
    Posts
    506
    Rep Power
    128
    Hrm...
    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.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    30
    Rep Power
    0
    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...
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,968
    Rep Power
    374
    post your code & someone will help you
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    30
    Rep Power
    0
    i hv no code at the moment, am just looking for a tutorial
  14. #8
  15. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    23
    Rep Power
    0
    Using table you can show database data to the user.Store image path in database so that you can retrieve it.

IMN logo majestic logo threadwatch logo seochat tools logo