Ver Mensaje Individual
  #4 (permalink)  
Antiguo 12/01/2007, 09:51
Avatar de Superlinux
Superlinux
 
Fecha de Ingreso: octubre-2005
Ubicación: Colombia
Mensajes: 662
Antigüedad: 18 años, 6 meses
Puntos: 1
Pregunta Re: Ayuda con este sql

.... 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 ...
__________________
"La vida sigue su curso, tú toma parte de ella."