View Full Version : Pagination in Php ?

06-05-2005, 03:10 PM
Hello Guys,

I am using a script which can't get pages automaticly. Like "Next Page" go to next page and "Preveious Page" go to previous page.

I need a script which can get pages automaticly, Like (Pages : 1 | 2 | 3 | 4 ).

Please help me pleaseeeeeeeee!!!!!!!! :mad:


06-05-2005, 03:35 PM
Well, firstly we'd need to know how your pages relate to each other - exactly how do you know which page is next and which page is previous in relation to the current page as well as whether you use flat files with a standard naming protocol or dynamic data generated from a database in which case, again, how do you want to relate each page, ascening order by page id, alphabetical order by page name, etc.

Besides that there are plenty of ready made scripts on the net, if all you want is a ready made solution I'd recommend you go search a little. If you want to write your own and need some pointers or if you run into problems along the way, then post back :)