Размер файла: 754B
<body bgcolor=#D1E7FE>
<title>Admin / Post News</title>
<? include("configure.php");
$connection = @mysql_connect("$db_server", "$db_name", "$db_password") or die("Couldn't connect.");
$db = @mysql_select_db($db_database, $connection) or die("Couldn't select database.");
$sql = "INSERT INTO ns_news
(postby, title, item, hldate, email, today)
VALUES
(\"$postby\", \"$title\", \"$item\", \"$hldate\", \"$email\", \"$today\")
";
$result = @mysql_query($sql, $connection) or die("Couldn't execute query.");
$display = "
<font size=4>
Success!
<br>
<p>
<b>Title:</b>
<br>$title
</p>
$today
<p>
<b>News Item:</b>
<br>$item
</p>
</font>
<p>
<a href=\"admin.php\">Admin Center</a>
</p>
";
echo $display;
?>