Untitled
public text v1 · immutable<?php
$sentID=$POST['postID'];
include 'library/config.php';
include 'library/opendb.php';
mysql_query("DELETE FROM news WHERE ID='$sentID'")
or die(mysql_error());
include 'library/closedb.php';
?>
<html>
<head>
<title>Delete</title>
</head>
<body bgcolor="white">
<form method="POST" action="">
<font color="blue">ID to delete:</font>
<input type="text" id="postID" name="postID" size=100>
<input type="submit" value="Submit">
</form>
</body>
</html>