Home > Backend Development > PHP Tutorial > 网易评论系统盖楼模式的数据表字段设计

网易评论系统盖楼模式的数据表字段设计

WBOY
Release: 2016-06-06 20:40:42
Original
1489 people have browsed it

要做一个类似于网易盖楼模式的评论系统,数据表字段不知道怎么设计才好

回复内容:

要做一个类似于网易盖楼模式的评论系统,数据表字段不知道怎么设计才好

comments_id,comments_content,comments_user_id,comments_follow_id
至少这四个吧,你可以自己想一下。实现盖楼就可以根据comments_follow_id来实现了,你可以默认设置为0,表示没有回复的评论,有回复就把comments_id存到该字段就可以了。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template