nl2br() won't output line breaks, just 'n'
<p>It's pretty simple, I have a text area post on my website, and if I input:</p>

<pre><code>line 1
line 2
line 3
</code></pre>

<p>into it, it outputs:</p>

<pre><code>line 1nline 2nline 3
</code></pre>

<p>My insert code is:</p>

<pre><code>    $status = strip_tags(stripslashes(htmlentities(mysql_real_escape_string($_POST['status']))));
    $uid = strip_tags(stripslashes(htmlentities(mysql_real_escape_string($_POST['uid']))));

    //more stuff

        $sid = rndTxt(16);
        $status = nl2br($status);
        if (!get_magic_quotes_gpc()) {
            $status = addslashes($status);
        }


    $insert = mysql_query("INSERT INTO mingle_status (uid,sid,status,`timestamp`) VALUES ('$uid','$sid','$status',now())") or
    print mysql_error();
</code></pre>

<p>and my output code:</p>

<pre><code>while($st = mysql_fetch_assoc($statussql)) {
    $status = stripslashes($st['status']);
    $sid = $st['sid'];
    $td = $st['timestamp'];
?&gt;
&lt;div id="n"&gt;
&lt;div id="statuses" class="&lt;?php echo $sid; ?&gt;"&gt;
&lt;p&gt;&lt;?php echo $status; ?&gt;&lt;/p&gt;
&lt;div id="statuscomadd" style="background:#E0E0E0;"&gt;
&lt;a href="ld.php?uid=&lt;?php $uid; ?&gt;&amp;pid=&lt;?php echo $sid;?&gt;&amp;method=like"&gt;Like&lt;/a&gt; &lt;a href="ld.php?uid=&lt;?php $uid; ?&gt;&amp;pid=&lt;?php echo $sid;?&gt;&amp;method=dislike"&gt;Dislike&lt;/a&gt;&lt;a href="#" id="time"&gt;&lt;?php echo time_since($td) . " ago"; ?&gt;&lt;/a&gt;
&lt;/div&gt;  
&lt;/div&gt;
</code></pre>

<p>Any help would be greatly appreciated!:)</p>
