数据库结构-如何判断是否有新回复

WBOY
Release: 2016-06-13 13:10:17
Original
973 people have browsed it

数据库结构--怎么判断是否有新回复?
数据库结构--怎么判断是否有新回复?
如我在这里发了贴,人家回复了我的帖子,我进入帖子中心,这个帖子会高亮显示,我点击浏览这个帖子后,这个帖子就变成普通非高亮状态,请问数据库结构应该是怎样的?

------解决方案--------------------
设一字段:
初值为一
回复加一,浏览减一

列表时判断一下即可

------解决方案--------------------
表里加个字段,递增就行,有回复就加一
------解决方案--------------------
被一个字段,update_time 数据库设一下,更新时,记录最近更新时间!

Related labels:
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