PHP: Star rating system concept?

Posted by Prashant on Stack Overflow See other posts from Stack Overflow or by Prashant
Published on 2010-12-23T14:49:35Z Indexed on 2010/12/23 14:54 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

I am using PHP/MYSQL/JQUERY.

I have a site which have news section. On news details page, I want to add star rating system which will allow user to rate the news story. I am using this jquery rating system http://www.fyneworks.com/jquery/star-rating/

Now, I am not getting what will be the database structure and then what I need to code in PHP. I need what logic will be applied for this, like if 1000 people voted for the article, some given rating as 2 or 3 or1 or 5. Then Where I should be storing (db structure) this all and what I'll calculate (in php code).

If someone has any article which shows this concept please provide.

Please help, to understand the logic and concept of this.

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql