Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/08/2009, 11:43
ckike
 
Fecha de Ingreso: agosto-2009
Mensajes: 2
Antigüedad: 14 años, 8 meses
Puntos: 0
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Saludos soy nuevo aquí y se que vi en algún lugar del foro algo similar, pero no lo encuentro ahora, quisiera saber si me pueden ayudar con un error que me esta saliendo en la web cuando trato de correr el search. Esto nunca habia pasado y no hemos hecho ningun cambio en el php, antes todo funcionaba bien. El error es el siguiente:


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hermes/bosweb/web138/b1387/sl.optionpr/public_html/optionpr/proveedores.php on line 144



Cuando busco a el error me tira esto: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1


aqui tienen el codigo:

{
while($row = mysql_fetch_array($resultados))
{
echo "<li class=\"list\"><b>". $row[1]."</b><br />";
echo "Telefono: ". $row[3]."<br />";
echo "Especialidad: ". $row[8]."<br />";
echo "Pueblo: ". $row[6]."<br />";
echo "</li>";
}



Cualquier ayuda sera agradecida