How do you make it so that when creating your threads table in your forums the threads shown only goes up to say 25 or something, then the next threads are shown on a separate page?
Sorry if thats not very clear.
How do you make it so that when creating your threads table in your forums the threads shown only goes up to say 25 or something, then the next threads are shown on a separate page?
Sorry if thats not very clear.
I assume you're talking about pagination. That depends entirely on the forum script you're using, whether it's an in-house script or a commerical one like vBulletin. Either way, it's hard to give advise on something as broad as this.
I don't know the term for what i'm looking for, it probably is Pagination. But i found a great tutorial that has solved my problem.
http://www.php-mysql-tutorial.com/php-mysql-paging.php
I found a link to that site in another one of the threads in these forums.
Thanks.
You simply specify a page number to the script, and a number of posts per page in the script.
Then it grabs from (page# * posts/page)-25 through that +25.
Those posts are shown on the page.
Supplying a different number would give:
page3*25 posts/page-25 through that+25, so... 50-75
In other words, just specify which range by "page" and that's that.
Sorry if this is confusing. It's just math, really, though.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Bookmarks