News

The MySQL SUM function takes the fields or rows you input and adds their values together, then returns the total. Save your query in a PHP variable.