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.