Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/07/2008, 09:27
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 17 años, 5 meses
Puntos: 28
Error al ejecutar Query

saludos,
se que este es un error un poco tonto pues jamas me habia pasado y es un tema q deberia tener bien claro pero no entiendo q me pasa aqui o no veo el error... si alguien lo ve por favor

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\wamp\www\Flamuko\ficha_cat.php on line 12

Código PHP:
<?php include('connect.php');
$sql="SELECT * from categoria ORDER BY nombre ASC";
$sql_exec=mysql_query($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body><?php while($row=mysql_fetch_assoc($sql_exec)){ //linea 12 ?>
<table width="250" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php echo $nombre ?>&nbsp;</td>
  </tr><?php ?>
</table>
</body>
</html>
gracias
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...