In the forum, the topic posts and comments are not the same table pages.
Source: Internet
Author: User
In the forum, the topic posts and comments are not in the same table. for example, the topic posts are in one table and the comments are in another table. For more information, see, the implementation is similar to the paging function of the discuz Forum. How can we make it easier? Php: Ask the forum by page. the topic posts and comments are not the same table by page.
For example, the topic post is a table, and the comment is another table. For more information, see how to implement the pagination function of articles similar to the discuz Forum.
How can we make it easier? Php, paging
------ Solution --------------------
Jquery. ajax is used to process non-refreshing pages. If you refresh the page, pass the session to determine the page on which the user accesses the page.
Paging is quite simple. Topic post table A must be associated with comment Table B with A foreign key. So you don't have to worry about it.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service