File size: 1.62Kb
<body bgcolor=#D1E7FE>
<title>Admin / Delete News</title>
<? include("configure.php"); ?>
<?
$table_name5 = "ns_news";
$connection5 = @mysql_connect("$db_server", "$db_name", "$db_password") or die("Couldn't connect.");
$db5 = @mysql_select_db($db_database, $connection5) or die("Couldn't select database.");
$sql5 = "SELECT title, postby, hldate, id, item, email, timestamp, today, hldate, id
FROM $table_name5
WHERE id = \"$deletenews\"
";
$result5 = @mysql_query($sql5, $connection5) or die("Couldn't execute query.");
while ($row5 = mysql_fetch_array($result5)) {
$title = $row5['title'];
$postby = $row5['postby'];
$delown5 = $row5['delown'];
$id = $row5['id'];
$item = $row5['item'];
$email = $row5['email'];
$timestamp =$row5['timestamp'];
$today = $row5['today'];
$hldate = $row5['hldate'];
}
$edit_news = "
<form action=delnewsown_3.php method=post>
<input type=hidden name=deletenews value=$id>
<p>
<input type=checkbox name=delete>
Delete This News Item
</p>
<p>
Posted By
<br><input type=text name=postby value=\"$postby\">
</p>
<p>
Title
<br><input type=text name=title value=\"$title\">
</p>
<p>
News Item
<br><textarea cols=40 rows=8 name=item>$item</textarea>
</p>
<input type=hidden name=email value=\"$email\">
<input type=hidden name=timestamp value=\"$timestamp\">
<input type=hidden name=today value=\"$today\">
<input type=hidden name=hldate value=\"$hldate\">
<p>
<input type=submit value=\"Edit/Delete\">
</p>
</form>
";
?>
<font size=4>
<p>
<? echo $edit_news; ?>
</p>
<p>
<a href="admin.php">Admin Center</a>
</p>
</font>