Ask the user to have a new idea and implementation method after replying to the post.

Source: Internet
Author: User
Q: After replying to a post, I will notify the user of a new reply idea and implementation method. after posting, & nbsp; how do I know there is a new reply in the post? & Nbsp; could you please kindly advise me?
After posting, how do I know that there is a new reply in the post? Please share your thoughts or related materials with us:
------ Solution --------------------
Do I need to refresh the display in real time?
Real-time ajax persistent connection ~ Just refresh the display and import it to the database.
------ Solution --------------------
Create two data tables. The first table is used to store the primary table, that is, your primary table. this table must have a field, used to store the id of the latest Reply
Create another table, which stores the unique content in the reply content. the id column is the unique value for auto-increment.

You can check the latest reply id of the first table during the specified period.
------ Solution --------------------
There are two fields in my comment table. one field records "this is a comment on which Post", and the second field records "this is a reply to which Comment"

Store the primary Post ID and the comment ID respectively.

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.