if(isset($_POST["button"]))
{
$title = $_POST["title"];
$color = $_POST["color"];
$message = $_POST["message"];
$date = date("m/d/Y");
$by = $_SESSION["admin"];
mysql_query("INSERT INTO Blog (title, date, by, content, color)
VALUES ('$title', '$date', '$by', '$message', '$color')") or mysql_error();
$content = 'Thank you for posting this message.<br><br><a href="index.php">[Go Back]</a>';
}
The part that isn't working is the mysql_query().