Jump to content

rating system


dad00

Recommended Posts

ok... lol

 

make choices 1..2..3..4..5

 

then, when sum1 clicks 5.. add it to the total number

 

like if 1 user clicked 2 and sum1 licked 4

 

you'd have 2 votes which total 6 points

 

now if you divide 6 by 2 you get 3

 

which is the AVERAGE rating of whatever content they're rating..

 

so the content's rating would be 3

 

so basically this format

 

RATING = TOTAL_SCORE / TOTAL_VOTES

Link to comment
https://forums.phpfreaks.com/topic/147403-rating-system/#findComment-773723
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.