how can i use the nl2br() function in this piece of code?
$result=mysql_query("SELECT * FROM `post` ORDER BY `id` DESC") or die('MySQL error: '.mysql_error());
while($myrow = mysql_fetch_array($result, MYSQL_ASSOC)) {
printf("
<table width='550' border=0 cellpadding=0 cellspacing=0><tr>
<td width='472' class='tableheader'>%s</td>
</tr>
<tr>
<td class='tableentry' <br><br> %s -- %s <a href='index.php?main=comment&id=%s'>Comentarios</a></td>
</tr></table><br>",
$myrow['titulo'], $myrow['texto'], $myrow['fecha'], $myrow['hora'], $myrow['id']);
}
if i put the nl2br() inside it'll display as text.