I'm trying to display a mediumtext field from a mysql database and it doesn't include return characters, ie, just comes out as a long string. 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:
$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=\"70%\"><div align=\"center\">$cr_text</div></td>
";
$i++ ;
endwhile;
The cr_text field is the mediumtext. The output is obviously in a table.
Any ideas would be great. Thanks, M.