Provides a variety of official and user-released code examples, code reference, you are welcome to exchange and learn this is the original comment system of the official website of materials, with emotices, content restrictions, comment time judgment and other small programs. Both the comment and reply content are loaded by ajax. You can use static cache or data cache to reduce the pressure.
Comment table structure
Create table if not exists 'sucai _ comment '(
'Id' int (11) not null AUTO_INCREMENT,
'Uid' int (11) not null,
'Touid' int (11) DEFAULT '0 ',
'Pid _ sub' int (11) DEFAULT '0 ',
'Tid' int (11) not null,
'Pid 'int (11) DEFAULT '0 ',
'Mtype 'tinyint (1) not null,
'Content' text not null,
'Addtime' int (10) not null,
Primary key ('id ')
ENGINE = MyISAM default charset = utf8 AUTO_INCREMENT = 5560;Material fire system demo address: http://www.sucaihuo.com/js/816.html
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB