Welcome Guest, Not a member yet? Register   Sign In
How to paginate search results page?
#1

[eluser]java[/eluser]
When visitor use my search engine to search something. It will list all results it can have. I want to make pagination for it and limit in a specify number. How can i do that? Tell me please!
#2

[eluser]wemago[/eluser]
http://ellislab.com/codeigniter/user-gui...ation.html
#3

[eluser]beatryder[/eluser]
yes, the pagination library is what you want.

I would recommend having a DB table or session variable to store your search results in. That or you will need to write your search function such that you can return results 'n' through '(n+k)' for an arbitrary n and k value. Where 'n' is the result you wish to start at, and 'k' is the number of results you wish to show.
#4

[eluser]java[/eluser]
Thanks for your advise, i think i will build a set of controller, view( to list detail of the result ) and a function in model, can anyone give me other ideas?




Theme © iAndrew 2016 - Forum software by © MyBB