i do this in a few places, and prob go a long way about it, but this is what i do.
I have a field called total, each time there's a vote i add the vote value to this field. So if the first 2 people vote 10, then this field holds 20.
I have a field called votes. With each vote for that particular product i increment the value by 1.
So at this stage i know for product a, i've got 10 votes with a total of 50.
Simple maths gives you the rest. ie total/votes = average.
LinkBack URL
About LinkBacks

Reply With Quote


Bookmarks