php sum all values in from databse code example Example: sum mysql column SELECT sum( mark ) FROM `student`