I want the user to post a comment into the database through the textarea and then the database should put the information back onto the site. But this isn't working!
index.php:
<textarea rows="2" cols="71" wrap="physical" placeholder = "Post Something!" name="rant_box"></textarea>
<input type="submit" value="Post" name="post_btn"/>
<?php
$getquery = mysql_query("SELECT data FROM status ORDER BY id DESC");
while($rows = mysql_fetch_array($getquery)){
$id = $rows['id'];
$status = $rows['status'];
echo $status . '<br />' . '<br />';
}
?>
The data is being correctly entered into the database. But calling it back and posting it back onto the index.php page isn't working.