阅读背景:

如何实现嵌套注释系统?

来源:互联网 

What would be the ideal way to implement this sort of thing? The idea I have in my head right now is to have a comments table and have each comment have a thread identifier and parent comment identifier. The thread identifier would indicate to which thread the comment belongs to and would allow for a simple MySQL statement using the WHERE clause. Each comment would have an auto_increment identifier as per usual database design and the parent identifier column would indicate which comment this comment is a child of.What would be the ideal way to implement this s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: