商城的评价表如何设计

WBOY
Release: 2016-06-06 20:16:03
Original
2825 people have browsed it

还有就是星的计算逻辑 也就是5星啊 那些 求大神指导

回复内容:

还有就是星的计算逻辑 也就是5星啊 那些 求大神指导

包含 主键id 商品id 用户id 商家id 评价内容 评价分数1-5分 评价时间

用商品id查出评价列表就行了 评分输入商品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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!