开发者

state of art rating system in php [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

I am a programmer .I wa开发者_运维问答nt to know how to implement * rating in php.Just tell me the steps


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜