I have a field in my database that is of TEXT property, which will hold the comments entered by the visitor in my guest book. I have the following codes to retrieve other information from the database, for example the e-mail address and so forth. But when it comes to comments, it only returns the first line. What should I do?
$result = mysql_query("SELECT * FROM guestbook WHERE ID='$ID'", $db);
while($row = mysql_fetch_array($result))
{
//other codes here
$comment = $row['comment'];
}
Example of comment:
"Comment line 1.
Comment line 2.
Comment line 3."
When echoing $comment, it will display only "Comment line 1.".
Any solution?