参考一下这里:
http://www.5ihack.com/soft/php/diary/200612052347.html

解决方案 »

  1.   

    建一个表就行了。没什么内容 。
    create table message(
    post_id int not null auto_increment primary key,
    post_message text not null,
    reply_id int,
    reply_message text not null
    ) engine=myisam default charset=utf8;有必要的话给reply_id 建立一个INDEX
      

  2.   

    建立一个专门用来存储留言相关信息的表就可以了,同时也要注意与数据库中其它至少一个表相关联。如果你用过MySQL,你知道该怎么做的。