alrighty, i fixed that thanks 🙂
but now its weird, the script displays nothing and i dont see why it wont work
@ $db = mysql_connect("$db_host", "$db_username", "$db_password");
if (!$db)
{
echo "<b><font color=\"red\">Error!</b></font> Could not connect to database.";
exit;
}
mysql_select_db("$database1");
$query = "INSERT INTO news (name, email, title, body, date) VALUES ('$news_name', '$news_email', '$news_title', '$news_body', '$news_date')";
$result = mysql_query($query);
if ($result)
echo "<b><font color=\"blue\">Success</font></b> - News Post added to database and is displayed on front page.";