You are about to report the tutorial shown below for review. Please only report if there is a problem with it.
Thanks.
Mathematical Averages In PHP PHP / Polling and Voting
Now that we have a database of ratings for each day we can open and read that database and dynamically display results. First we need to know how to get an average. To do that we need two pieces of data: the accumulated total of all ratings and the total number of votes.