Forum Moderators: coopster

Message Too Old, No Replies

how to split results up into several pages with php

         

someone

8:47 pm on Aug 20, 2004 (gmt 0)

10+ Year Member



i have a php site where people can search for things then it will return results. The results could be very long depending on what they search for. So I would like to split the results up into several pages, making only display an x amount of results on one page. So if someone searches for "berry", and assum that the search will return 50 results. I want it to display 20 on the first page, another 20 on the 2nd page, and the remaining 10 on the last page. could someone please give me some hints into doing that? thanks.

Timotheos

9:58 pm on Aug 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you Google for "pagination php [google.com]" there's lots of examples and tutorials on the net.