Tema: sentencia
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/04/2010, 09:29
banrey
 
Fecha de Ingreso: septiembre-2007
Mensajes: 318
Antigüedad: 17 años, 4 meses
Puntos: 1
De acuerdo sentencia

Amigos, estoy que me rebiendo la cabeza con esta consulta.

<?
include("conexion_especificaciones.php");
$sql1=mysql_query("SELECT referido.producto,referido.marca
FROM referido",$conexion3);
if($mark = mysql_fetch_array($sql1)){
do{
$busca1=mysql_query("SELECT ".$mark["marca"].".version
FROM ".$mark["marca"]."
WHERE ".$mark["marca"].".civi='".$mark["producto"]."'",$conexion3);
echo "<table width=\"88\" border=\"0\"";
if($row1 = mysql_fetch_array($busca1)){
do{
echo "<tr><td>".$row1["version"]."</tr></td>";
}
while($row1 = mysql_fetch_array($busca1));
echo "</table>";
}
}
while($mark= mysql_fetch_array($sql1));
}
?>

ME ARROJA EL SIGUIENTE ERROR
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\supervisor\index.php on line 191

QUE PUEDE SER NO CONSIGO EL ERROR.
NECESITO UNA MANITO A VER SI USTEDES SI VEN EL ERROR QUE TENGO.
MIL GRACIAS ESPERO Q ME PUEDAN AYUDAR