Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/09/2010, 13:59
ommm
 
Fecha de Ingreso: septiembre-2010
Mensajes: 92
Antigüedad: 13 años, 7 meses
Puntos: 1
Pregunta Error Warning: mysql_fetch_row():

Mi código:

Código PHP:
 <link href="stylever.css" rel="stylesheet" type="text/css"> 
<?php
include "conexion.php";
$result=mysql_query("SELECT id,the_date,salida,destino,usuario,contacto FROM bookings ORDER BY id DESC WHERE id_item='1'",$conexion);
echo
"<table class='tabla'>
<tr class='tit'>
<td><b>Fecha</b></td><td><b>Salida</b></td><td><b>Destino</b></td><td><b>Usuario</b></td><td><b>Contacto</b></td>
</tr>"
;
while(
$row=mysql_fetch_row($result)){
  echo
"<tr>
    <td>$row[1]</td><td>$row[2]</td><td>$row[3]</td><td>$row[4]</td><td>$row[5]</td>
    </tr>"
;
}
echo
"</table>";
include 
"cerrar_conexion.php";
?>
Me da el siguiente error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/pruebasa/public_html/ver_coche1.php on line 10



Muchas gracias de antemano :D