Displaying text from database. Dissapears when page is refreshed
<p>I'm currently building a social network from home and have a very nice looking newsfeed. Now I'm able to post my status to the database and it pops up underneath, just like Facebook's newsfeed. However, when I refresh the page the status I inputted disappears and wondering if someone could tell me where I may have gone wrong as Dreamweaver isn't showing any errors within my code. </p>

<p>I have checked my database and the status is still in there, just the box with the inputted text disappears completely from view.</p>

<p>Here is my status code. Any help is greatly appreciated. </p>

<pre><code>&lt;?PHP 
//Include connection to database
include('connect_to_mysql.php');

//Get posted values from form
$status=$_POST['status'];
$date=$_POST['date'];

//Strip slashes
$status = stripslashes($status);
$date = stripslashes($date);

//Strip tags 
$status = strip_tags($status);
$date = strip_tags($date);

//Inset into database
$insert_status=mysql_query("INSERT INTO status (status, date) VALUES('$status','$date')") or die (mysql_error());
while($row=mysql_fetch_array($insert_status)){
$status=$row['status'];
$date=$row['date'];
}


//Line break after every 80
$status = wordwrap($status, 80, "\n", true);

//Line breaks
$status=nl2br($status);

//Display status from data base
echo '&lt;div class="load_status"&gt;
&lt;div class="status_img"&gt;&lt;img src="blankSilhouette.png" /&gt;&lt;/div&gt;
&lt;div class="status_text"&gt;&lt;a href="#" class="blue"&gt;Test Name&lt;/a&gt;&lt;p class="text"&gt;'.$status.'&lt;/p&gt;
&lt;div class="date"&gt;'.$date.' &amp;middot; &lt;a href="#" class="light_blue"&gt;Like&lt;/a&gt; &amp;middot; &lt;a href="#" class="light_blue"&gt;Comment&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="clear"&gt;&lt;/div&gt;
&lt;/div&gt;';
?&gt;
</code></pre>
