how to get the sum of all column in a single query php code example Example: sum mysql column SELECT sum( mark ) FROM `student`