add the following two tables
comment to record comments and comments
CREATE TABLE `comment` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`comment` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
)
the reply_to table records the relationship between replies and comments
CREATE TABLE `reply_to` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`response_id` int(11) NOT NULL, //idcommentid
`comment_id` int(11) NOT NULL, //idcommentid
PRIMARY KEY (`id`)
)
Table comment data is as follows
reply_to
()sql
https://stackoverflow.com/que...
sql
(~):