forum pager

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
theclay7
Forum Commoner
Posts: 50
Joined: Wed Feb 19, 2003 3:17 am

forum pager

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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'] )
Post Reply