title: PHP MYSQL fetching a TEXT with new lines
body: <pre><code>&lt;?php
  
  //after connecting etc..
          $username = $_SESSION['username'];
          $string = "SELECT msg FROM $table WHERE username='$username'";
      $result = mysql_fetch_array(mysql_query($string)) or die(mysql_error());
      echo $result[msg];
  ?&gt;
  </code></pre>
  
  <p>this is how the database is..</p>
  
  <pre><code>I wanted to install the database base.
  I wanted to install the database server.
  I wanted to install the Ubuntu.
  </code></pre>
  
  <p>when i retrieve them they appear as..</p>
  
  <pre><code>I wanted to install the database base.I wanted to install the database server.I wanted to install the Ubuntu.
  </code></pre>
  
  <p>Its a TEXT field.. is there a way to make them appear with the new lines? exactly the same?</p>
  
  <p>Thanks a lot!</p>