Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB