Miscellany
public text v1 · immutable<?php
if(isset($_POST['id']))
{
$id = $_POST['id'];
if(!get_magic_quotes_gpc())
{
$id = addslashes($id);
}
include 'library/config.php';
include 'library/opendb.php';
$sql = "DELETE FROM news WHERE ID = $id";
$result = mysql_query($sql);
include 'library/closedb.php';
}
?>
<html>
<body>
<form method="post">
<input type="text" name="name" value="">
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>