Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/07/2005, 13:44
Avatar de yampoo
yampoo
 
Fecha de Ingreso: noviembre-2001
Ubicación: Vilanova i la Geltrú
Mensajes: 1.942
Antigüedad: 22 años, 4 meses
Puntos: 0
A ver que le pasa a éste Warning

Tengo el siguiente código php para mostrar unas noticias:

Código PHP:
      <?
                   $mn 
mysql_query("select * from not order by id desc limit 0,5",$link);
                   while(
$ma mysql_fetch_array($mn)) {
                    echo 
"<tr>";
                      echo 
"<td width=100% height=44 valign=top>";
                      echo 
"<b><font size=3 color=#1551B4>";
                      echo 
"<img border=0 src=imagenes/cuad.gif width=8 height=8>";
                      echo 
"<a href=noticia.html?id=".$ma['id']."><font size=3>".$ma['titulo']."</font></a></font></b><br>";
                      echo 
$ma['desc']."</td>";
                   echo 
" </tr>";
                    }
                    
?>
Pero al ejecutarlo me da éste warning:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in F:\hshome\sergioso\ebolsa.net\portada.html on line 154

Y no muestra nada, y en esa tabla hay dos noticias... tendría que mostrar alguna... pero sólo da ese warning, ¿qué le pasa?