Page 1 of 1

forum pager

Posted: Thu Mar 06, 2003 3:40 am
by theclay7
I am doing a forum similar to this one, and I want to do a paging.

say show 10 records per page....

does anyone have a good script that is using PEAR?
if not, mysql_functions would be fine also....

Criteria:

I want to have clicks to " Page: 1 2 3 ... 100 "
I also want to have clicks " << " and " >> "

actually the paging in this forum is very good...

thanks

Posted: Thu Mar 06, 2003 5:36 am
by volka
you can download phpBB and take a look at the code. The section you might be interested in is located in viewforum.php and starts with

Code: Select all

if( ( $replies + 1 ) > $board_config&#1111;'posts_per_page'] )