I have a basic MySql database, and am trying to display a field with multiple lines entered. Only 1 line displays.
For example, the following text entered:
Line 1
Line 2
Will display the following when retrieved:
Line 1 Line 2
However in PHP My Admin when displaying the record, it displays it as:
Line 1
Line 2
How can I make this field display the lines correctly?
Thanks
For example, the following text entered:
Line 1
Line 2
Will display the following when retrieved:
Line 1 Line 2
However in PHP My Admin when displaying the record, it displays it as:
Line 1
Line 2
How can I make this field display the lines correctly?
Thanks
Code:
<?
//My Code
$Comment=mysql_result($result,$i,"Comment");
echo $Comment;
?>