state of art rating system in php [closed]

我的未来我决定 提交于 2019-12-25 19:06:33

问题


I am a programmer .I want to know how to implement * rating in php.Just tell me the steps


回答1:


Not quite sure what you're talking about, so I'll give my best shot.

If you're talking about having a 5-star/10-star (etc) rating system, optimally, you should probably use a database backend and a jQuery frontend. In the database, you can store the stars as an tinyint (values 1-255), and you can use jQuery to:

  • Send an AJAX request to the server when the user rates an item
  • Display the stars so they're quite pretty and attractive, by utilizing their plugins and so forth

Depending on how you want to accomplish this, you may have a boolean stored in the session which checks if the user has rated an item or not; this is to prevent someone from rating an item over 9000 times.



来源:https://stackoverflow.com/questions/4688389/state-of-art-rating-system-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!