Reply to thread

I'm programming my own forum in PHP.  I have a MySQL database containing the fields forum_boards, forum_topics, and forum_posts.  Say I have a page like:

index.php?topic=1

It would display the topic that has an ID of 1.  It would also display all the posts that match the topic ID.  Pretty simple stuff thus far.

But I would also like to add another functionality.  I want pages--that is, only ten posts per page.

index.php?topic=1?page=1

index.php?topic=1?page=2

So the first page would display the first ten posts, and the second would display the next ten posts.  Just a little shaky on how to do this.  Some help would be appreciated.


Loading…
Back
Top