Ver original$suma = $db->query("SELECT SUM(campo1+campo2) as total,campo3 FROM tabla GROUP BY campo3");$total = mysqli_num_rows($suma);$row = $suma->fetch_assoc();echo $row['campo3'].": ".$row['total'];