Very simple ratings script.
Posted: Tue Jun 04, 2002 9:49 pm
Ok i want to make a simple rating script. basically i will have the user choose a value between 10 and 0 from like a radio button or drop down menu, and that info will be fed into a MySQL Column, ok so then once i have lets say a few of these ratings done by differnt users how do calculate an overall average?
|------------------|
|ID|Message|Rating|
|------------------|
|1|hello|2|
|2|hi|9|
|3|yo man|7|
|4|homes|10|
|------------------|
ok so lets my table looks like that....how do i use the numbers from the "Ratings" column to display an overall average?
thank you!
|------------------|
|ID|Message|Rating|
|------------------|
|1|hello|2|
|2|hi|9|
|3|yo man|7|
|4|homes|10|
|------------------|
ok so lets my table looks like that....how do i use the numbers from the "Ratings" column to display an overall average?
thank you!