Hola que tal
Tengo el siguiente inconveniente con la sentencia
Código:
while ($row = mysql_fetch_array($result)),
Me da el siguiente error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mipesoid/public_html/mip/includes/ver_descarga.php on line 29.
La linea 29 es el WHILE, lo raro es que en Localhost, no me da el error, dejo el código que estoy utilizando.
Código:
<?
$sql = " SELECT id_download,nombre_file,contar_download FROM download";
$result = mysql_query($sql);
?>
<table>
<th>Nombre Archivo</th>
<th>Descargar</th>
<th>Estadística</th>
<tr />
<?
while ($row = mysql_fetch_array($result))
{
echo "<td>", "$row[1]","</td>";
echo "<td>", "<form name='descarga' action='contar_descarga.php' method='post'>",
"<input type=submit value='Download'>" ,"</td>";
echo "<td>", "$row[2]"," Descargas ", "</td>";
}
?>
</table>
<?
Cualquier ayuda es bienvenida.
Un Cordial saludo