PHP: Star rating system concept?
- by Prashant
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!