Trying to echo to a new line and isn't working
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2674703/php-trying-to-create-a-new-line-with-n">PHP: trying to create a new line with “\n”</a><br>
  <a href="http://stackoverflow.com/questions/6879617/line-break-help-in-php">line break help in PHP</a>  </p>
</blockquote>



<p>Hello I have been trying to echo to a new line in PHP using the \n thing and it just isn't working, I have tried separating it just in case PHP got confused or something and it still isn't working, HELP!! </p>

<p>This is my code, you shouldn't need to know it all:</p>

<p>Take "id" to be 1, "sender" to be "test" and "message" to be "test"</p>

<pre><code>echo($rows."\n");

while($rowarray = mysql_fetch_array($result)){

echo($rowarray["id"].") From: ".$rowarray["sender"]." - ".$rowarray["message"]."\n");

}
</code></pre>

<p>I want it to print out like this:</p>

<pre><code>1 (or how many rows there are)
1) From: test - test
</code></pre>

<p>I have no idea what I am doing wrong. I would really appreciate help</p>
