Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/11/2009, 18:25
claudio_hbl
 
Fecha de Ingreso: octubre-2006
Ubicación: Valparaiso Chile
Mensajes: 228
Antigüedad: 17 años, 6 meses
Puntos: 0
Problema con while ($row = mysql_fetch_array($result))

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
__________________
Un Cordial Saludo
Claudio González Soto
Negocios Online
http;//www.servpcweb.com