• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
paginating search results

#2
[eluser]Burak Guzel[/eluser]
You can store it in session or cookies.

However, then there is a problem if the surfer wants to open multiple tabs with different searches. Then they can start overwriting each other. So you might want to create a unique id for each search, so multiple searches can be stored at the same time.

However, there is another issue. The person can't have a link to these search results (to bookmark it, or email it etc...), as the search parameter data would be temporary. If you want the links to keep working, you can store the search parameters permanently in a table, and assign a "query id". That's what I am doing in a project. So you can have url's this:

http://www.site.com/controller/method/qu...pagination

Sorry, all I provided is the logic and not the code. I hope it wasn't confusing.


Messages In This Thread
paginating search results - by El Forum - 06-22-2010, 11:53 AM
paginating search results - by El Forum - 06-22-2010, 12:11 PM
paginating search results - by El Forum - 06-22-2010, 12:20 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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