More like:
<?php
if (!empty($_POST['title']) && !empty($_POST['blog']))
{
require 'dbconnect.php';
$date = date('Y m d');
$title = $db->real_escape_string($_POST['title']);
$blog = $db->real_escape_string($_POST['blog']);
$query = "INSERT INTO blognews (title, blog, `date`) VALUES ('$title', '$blog', '$date')";
if ($db->query($query))
{
echo 'Your blog entry <b>' . $title . '</b>, has been posted on <i>' . $date . '</i>';
}
else
{
echo $db->error();
}
$db->close();
}
else
{
exit('<p>You have not entered all required details</p>');
}
?>
Note that I am guessing that backticks (`) should be used to escape identifiers. You may need to use the more standard double quotes or brackets, i.e.,
$query = "INSERT INTO blognews (title, blog, \"date\") VALUES ('$title', '$blog', '$date')";
or
$query = "INSERT INTO blognews (title, blog, [date]) VALUES ('$title', '$blog', '$date')";