Como sumar columnas de una tabla
Tengo mi siguiente código
¿
¿<?php
include("../assets/includes/conexion.php");
include('../fechas_de_corte.php');
$sqlrx = "SELECT *,
COUNT(nombre) AS totalpacientes,
SUM(tx) AS tx,
SUM(ab) AS ab,
SUM(sup) AS sup,
SUM(inf) AS inf,
SUM(col) AS col,
SUM(cra) AS cra,
SUM(senpar) AS senpar,
SUM(pel) AS pel
FROM estudios_rx WHERE fecha BETWEEN '$fechacortede' AND '$fechacortehasta'
GROUP BY tecnico
";
$rrx=mysqli_query($conexion, $sqlrx);
?>
<html>
<h1 align="center">¿Estudios del mes de?</h1>
<table width="70%" border="1px" align="center">
<tr align="center">
<td>tecnico</td>
<td>Estudios</td>
<td>Pacientes</td>
</tr>
<?php
while($rowrx = mysqli_fetch_array($rrx))
{
$totalestudios = $rowrx['tx'] + $rowrx['ab'] + $rowrx['sup'] + $rowrx['inf'] + $rowrx['col'] + $rowrx['cra'] + $rowrx['senpar'] + $rowrx['pel'];
?>
<tr>
<td><?php echo $rowrx["tecnico"]?></td>
<td><?php echo $totalestudios?></td>
<td><?php echo $rowrx["totalpacientes"]?></td>
</tr>
<?php
}
?>
</table>Me imprime esta tabla

Ya intente e intente busque en google y no pudo hacer lo siguiente....

Que me sume los totales.
Respuesta de Seventy Seven
1