• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you make pagination with search, sort by, order by and limit work?


I'm basically just looking for some tips on how to deal with pagination, the best way to do it...

Right now I got this URL:

This page is supposed to display a list of all users. I need the following:
- Search for username ($_GET search)
- Sort by ID, Username, Email, Country, etc. Both ASC and DESC
- Option to change amount of users displayed per page

This works fine:

I also added support for sort by and order by, which looks like this:
Now, is it so, that I really need to do this:

to search for user john?

Is it possible to just go
and then later do the sort by, order by and limit?

I know this is possible with $_GET however when turning that on I get

Quote:An Error Was Encountered

The URI you submitted has disallowed characters.

All this just seems rather confusing and not very user friendly? Then maybe there is something I didn't know? What is best practise? How do YOU deal with pagination?

Thanks! Smile

Messages In This Thread
How do you make pagination with search, sort by, order by and limit work? - by El Forum - 05-18-2010, 11:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.