Alright, maybe I'm having a brain cramp this late at night, but my code is not working, and I have no idea why. Any help? This is simply being used for me right now, so yes, I'm pulling straight from the $_POST.
<?php
session_start();
if($_SESSION['id'] != 5)
{
echo "NOT ALLOWED";
}
else
{
include('connect.php');
$title = $_POST['title'];
$content = $_POST['content'];
$sql = "INSERT INTO updates (id, title, date_posted, content)
VALUES (LAST_INSERT_ID(), ".$title.", CURDATE(), ".$content."";
}
mysql_query($sql);
?>