Ask the user to reply to a message after a new reply to the idea and the way to achieve

Source: Internet
Author: User
Ask a reply to the post after the user has a new reply to the idea and implementation method
How do you know after posting that there is a new reply to the post? To ask the gods for ideas or information.

Share to:


------Solution--------------------
Do you want to live or refresh the display?
Real-time on the Ajax long connection ~ Refresh the display directly into the library on the line
------Solution--------------------
Set up two tables, the first table to save the main sticker, which is the main post you have, this table has a field to save the latest reply ID
Create another table to store the contents of the reply, the ID column is the unique value of the self-increment

Check the latest reply ID of the first watch.
------Solution--------------------
There are two fields in my comment table, a field that records "which post is commented on", and the second field records "which comment is the reply to?"

Store the main post ID and the ID for the comment, 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.