How to design a forum comment form? Mysql
Only design comments, user tables and so on. One person comments, another reply, then comment, and then reply
------to solve the idea----------------------
Don't know what your comments and responses mean
Since it is a forum, there must be a main post, all comments and replies are for the main (now popular style) so comments and replies should contain the ID of the main posts
If you need comments and responses for a comment and reply, you also need to include the corresponding ID for the comment and reply (this style is a tree form used in earlier forums)
------to solve the idea----------------------
CSDN is the first solution.
ID Unique identification Word
The ID of the PID main stick
Other fields that you need
Can still be divided into two tables
Id
Other fields that you need
ID Unique identification Word
The ID of the PID main stick
Other fields that you need
------to solve the idea----------------------
The above can be said to drop, the main stick to have an ID, this ID is the main sticker ID in the comment, so that can be linked together
Another way is to build the building, you can press the time, but it is best to add a field, is the ID of the floor
------to solve the idea----------------------
Primary KEY comment Person ID reviewer ID timestamp comment content
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.