how to design selectable table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    how to design selectable table

    well, I need some help for designing a table that's showing some DB results and it should be able to sort/select some of the values. (there's no problem in getting the data once I know which ones)

    so, the (html) table structure is like (the columns to be sortable marked in bold)
    Code:
     ID | [B]Status[/B] | [B]seller[/B] | [B]price[/B] | [B]category[/B] | description | [B]date[/B]
    where "status", "seller" and "category" are a distinct set of values. and by sorting I want to show only the selected entries thereof (which can be done via <select> dropdown)

    what I want is a good idea how to sort the "date" and "price" (both would be a range type) columns (currently I'm using a separate form for all values) and how to display it in a nice way.

    one more thing, it would be nice if I could combine the queries (like getting all items seller A has in category M)

    thanks in advance, Dormi
  • DevInCode
    New Member
    • Apr 2008
    • 55

    #2
    as soon as I see you want a sort a table I immediately think of jquery and the table sorter plugin. Its marvelous. You might have to work the other features you want into it, but I think thats a good start.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      looks good but In don’t have a static table here. (the sorting needs to be done on the DB entries)

      Comment

      Working...