Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\New Folder (4)\listar.php on line 28
<html>
<head>
<title>Sans Titre</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="HAPedit 2.6">
</head>
<body bgcolor="#FFFFFF">
<?
$host="localhost";
$usuario="root";
$password="";
$db_name="productos";
$conexion=mysql_connect($host,$usuario,$password) or die(mysql_error());
$db=mysql_select_db($db_name,$conexion) or die(mysql_error());
$tabla="productos";
$sql="select * from $tabla order by idproductos";
$result=mysql_query($sql, $conexion);
echo"<table border>
<tr>
<td<b>idproducto</td>
<td<b>nombre</td>
<td<b>marca</td>
<td<b>existencia</td>
<td<b>comentario</td>";
while($row=mysql_fetch_array($result))
{
echo"<table border>
<tr>
<td>$row[idproducto]</td>
<td>$row[nombre]</td>
<td>$row[marca]</td>
<td>$row[existencia]</td>
<td>$row[comentario]</td>
";
}
mysql_close($conexion);
?>
</body>
</html>
Simplemente pide un listado de la base de datos pero me da ese erro por que?