Welcome Guest, Not a member yet? Register   Sign In
Filter and Sort a table
#1

[eluser]ImmergeTech[/eluser]
/articles/browse/

This page shows a large table, from a large dataset, limited to show 15 results.

/articles/browse/15

This page shows the next 15 results.


I need to be able to sort and filter this data. I want to have a set of links next to the table. One set of links will filter the data by category, and the next set of links will filter it by view count, rating, etc.

So I could end up having a few different URLs, here are some examples:

/articles/browse/cat/1/view/asc/rating/desc
/articles/browse/15/cat/1/view/asc/rating/desc
/articles/browse/30/cat/2/rating/asc

How would I code this?




Theme © iAndrew 2016 - Forum software by © MyBB