I read a text from my database which has multiple lines and and stored in a variable. when I output this variable on my webpage it is printed all in one line. How do output in different lines.
<?php
$num=$_GET['id'];
$result=mysql_query("SELECT * FROM messages WHERE id='$num'");
$row=mysql_fetch_array($result);
$msg=$row['message'];
?>
message:<br/><?php echo $msg;?>//Here I need to print message in multiple
//lines as entered in the database.