Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/05/2007, 07:55
ann_18
 
Fecha de Ingreso: marzo-2007
Mensajes: 83
Antigüedad: 18 años
Puntos: 0
Re: problema con nl2br

gracias por tu respuesta! Donde es adecuado que lo ponga,antes del nombre de la variable?

mira adjunto el codigo sin nl2br

<?
$result = mysql_query("SELECT * FROM noticias ORDER BY fecha DESC ",$conn);
if (mysql_num_rows($result)!=0){
echo "<table border = '0' width='720' height='210' bordercolor='#FFFFFF' class='estilo6' align='center'> \n";
while ($row = @mysql_fetch_array($result)) {
$idi=$row["id_noticia"];
$src=$row["src"];
echo "<tr><td rowspan='3' width='210'><left><img src=../gestor/".$src." width='210' height='210'></left></td><td width='510' height='20'><left>".$row["fecha"]."</left></td></tr><tr><td height='20'><left>".$row["titulo"]."</left></td></tr><tr><td height='170' valign='top' ><left>".$row["noticia"]."</left></td></tr><tr>
<td colspan='2'><img src='gestor/base2.jpg' width='666' height='14'></td></tr>\n";
}
echo "</table> \n";
}


mysql_close($conn);
?>