I'm trying to display a mediumtext field from a mysql database and it gives strange results. In IE6 it wraps after everyword, in Opera it doesn't wrap at all. I want to be able to display the text as it is entered in the database (ie, with the carriage returns in the right place).
The code snippet is:
<PHP>
$i =0;
while ($i <$num_change_requests):
$cr_title = mysql_result($result,$i,"cr_title");
$cr_text = mysql_result($result,$i,"cr_text");
echo "
<td width=\"30\"><div align=\"center\">$cr_title</div></td>
<td width=\"30\"><div align=\"center\">$cr_text</div></td>
";
$i++ ;
endwhile;