Home > Backend Development > PHP Tutorial > 哪位大神会用PHP代码实现赞的功能和回复的功能啊该如何解决

哪位大神会用PHP代码实现赞的功能和回复的功能啊该如何解决

WBOY
Release: 2016-06-13 12:07:39
Original
1060 people have browsed it

哪位大神会用PHP代码实现赞的功能和回复的功能啊?
感激不尽哪位大神会用PHP代码实现赞的功能和回复的功能啊?
------解决思路----------------------
你可以在原来的回帖表加入一个字段存储讃的个数
另外你也可以单独建立一个表用来存文章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