Tengo el siguiente inconveniente con la sentencia
Código:
Me da el siguiente errorwhile ($row = mysql_fetch_array($result)),
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:
Cualquier ayuda es bienvenida.<? $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> <?
Un Cordial saludo