how to sum up amounts in sql table php code example Example: sum mysql column SELECT sum( mark ) FROM `student`