Php-php advanced-php how to design a post reply system

Source: Internet
Author: User
Similar to discuz, you can also reply to the reply request. Could you please give me the following idea? How can I design a data table like discuz? Can I reply to the reply?
How to design a data table

Reply content:

Similar to discuz, you can reply to the reply.
How to design a data table

User table stores user information, including the basic information of the author and comments. User ID
The post table stores the basic information of the post, including the ID and Author ID.
The reply table stores the reply content and other basic information. The post ID comments ID and parent ID are classified as infinitus. The floor replies are classified based on the hierarchical relationship of the infinitus category and the comment time.

Hope to be useful to you

The topic table stores the author, title, and other information.
Content table store associated topics and content
Floor table store floor reply content for this topic
Reply table a user replies to the associated floor ID and reply Object ID for a certain floor

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.