Hello,
I am writing a script for a rating system and it seems that the only thing I can't figure out is how to add up all the cells. I have a cell named review_rating and want to add up all the values in that cell.
For instance, I have 4 rows of rating values (1, 3, 5, 3). All together they should add up to be 12. How would I add those together?
I am pulling them in an array through an SQL query.
Need help with a rating script
Moderator: General Moderators
Code: Select all
SELECT SUM(`table_field`) FROM `table`Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.