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!
here's a very simple mysql example:
The maker of ColorBox has made a jQuery/PHP rating system that you can use called ColorRating. ColorBox is a great program so I think that ColorRating would be as well. I'd check it out as it might save you a lot of trouble:
http://colorpowered.com/colorrating/