php code to sum sales data column and row in mysql database code example Example: sum mysql column SELECT sum( mark ) FROM `student`