Cita:
Iniciado por Superlinux
... jeje perdon .. aqui se presenta el error ....
Código PHP:
$sql2 = mysql_query("select f.idfact, sum(vrtotal) total
from detallefactura d, factura f
where d.idfact = f.idfact");
$respu2 = mysql_fetch_array($sql2); // Se conecta a la BD y ejecuta el Select
Entonces te falta un group by...