I am making a posting system where a user can submit text into the database and it will store their username and the content that they typed in. For some reason it is not entering into the database. Any ideas?\[code\]<?php if(empty($_POST) === false){ $required_fields = array('content'); foreach($_POST as $key=>$value){ if(empty($value) && in_array($key, $required_fields) === true){ $errors[]='Whoops, you need to type something first!'; break 1; } } } if (empty($_POST) === false && empty($errors) === true) { $_POST['content'] = htmlentities(strip_tags(mysql_real_escape_string($_POST['content']))); $content = $_POST['content']; echo $content; mysql_query("INSERT INTO posts (user_id, content) VALUES (".$session_user_id.", ".$content.")"); header('Location: index.php'); exit(); } else if (empty($errors) === false){ echo output_errors($errors); } ?> <form action="" method="post"> <textarea name="content" class="post" placeholder="What's up <?php echo $user_data['first_name'];?>?"></textarea><br /> <input class="btn btn-primary btn-medium" type="submit" value="http://stackoverflow.com/questions/15628308/Post »"> </form>\[/code\]I'm sure im looking over something obvious, but I'm not sure. Thanks! Also if there is a better way to do this besides using a \[code\]mysql_query\[/code\], please explain. Thanks