Programming a Forum: Multiple Reply Pages

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
jonas
Forum Commoner
Posts: 96
Joined: Sun May 23, 2004 9:25 pm

Programming a Forum: Multiple Reply Pages

Post by jonas »

Hey, whats the best way to make sure that if you have a topic and it's replies are say 50, that it puts say 25 on a page and then the other 25 on another page.

I don't really know how to do this, so I would like some advice/examples of the best way to do this.

I'll probably end up making the 25 a variable that way people can set it themselves in their profile. I figure that would be best.

I know how to limit the output from the database but I really have no idea how to make it automatically make a new page for the replies, etc.

Thanks
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

research pagination.

=]. there is also a code snipplet in the code snipplets forum (duh?) for that

good luck
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

speak of the devil

viewtopic.php?t=18466
jonas
Forum Commoner
Posts: 96
Joined: Sun May 23, 2004 9:25 pm

Post by jonas »

You are my hero.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

lol

_root.bow.play(1);
Post Reply