how to return column sum in php code example Example: sum mysql column SELECT sum( mark ) FROM `student`