.... gran inquietud buscando alternativas ... se me presento gran error .
este es un sql funcionando
Código PHP:
$sql2 = mysql_query("select 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
pero cuando agrego algo como esto me genera el siguiente error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\SERVIDOR\WEB\SIGDOC\PUBLIC\BuscarFactura.php on line 78
Que estoy haciendo mal ...
Gracias por la ayuda ...