about rating

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
namitjung
Forum Commoner
Posts: 42
Joined: Mon Jun 20, 2005 3:17 am

about rating

Post by namitjung »

hi all,

I am wondering about rating concept in hotscripts.com. There are some listing which are rated as 1 star even more than 20 users have rated it. on the other hand some of the listing are rated 5 start even 5 users have rated it. I don't know how it works?

Any idea,suggestions please?

thank you
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

It is likely rated out of a maximum (best) at 10..
Each vote is put into a database and queried using average() or alike to determine the average score.
The rating is not determined by the amount of people who have rated the script, but what is average score of all the votes
Post Reply