Quantcast
Channel: Answers for "Creating a reply to the comment table."
Browsing all 4 articles
Browse latest View live

Answer by ThomasRushton

I would do it by keeping the replies in the Comment table, but having a separate table to link the Comments, thus: CommentID InReplyToCommentID So that if Comment 47 is a response to Comment 13, then...

View Article


Answer by Magnus Ahlkvist

Though Thomas Rushton already provided a good solution, I'd suggest adding just a new column, InReplyToCommentID in the comments table. Then you have both comments, replies and their relation all in...

View Article


Answer by ThomasRushton

I would do it by keeping the replies in the Comment table, but having a separate table to link the Comments, thus: CommentID InReplyToCommentID So that if Comment 47 is a response to Comment 13, then...

View Article

Answer by Magnus Ahlkvist

Though Thomas Rushton already provided a good solution, I'd suggest adding just a new column, InReplyToCommentID in the comments table. Then you have both comments, replies and their relation all in...

View Article
Browsing all 4 articles
Browse latest View live