Código SQL:
Ver originalSELECT SEC_TO_TIME( SUM( TIME_TO_SEC( espera ) ) ) total
FROM turnos_generales
WHERE `subdepto`='$area'
AND `fecha`='$dia'
SELECT COUNT(*)
FROM turnos_generales
WHERE `subdepto`='$area'
AND `fecha`='$dia'
y la bd
[URL="https://twitter.com/RachP_S/status/390507129947164672/photo/1"]https://twitter.com/RachP_S/status/390507129947164672/photo/1[/URL]
?>