Location: PHPKode > projects > Basic Announce > UPLOAD/basic_admin/deleter.php
<?
$id=$_POST['id'];
$db="Database";
$link = mysql_connect("Server", "User", "Password");
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db($db , $link)
or die("Couldn't open $db: ".mysql_error());
mysql_query("DELETE FROM announcements WHERE id=$id");
mysql_close($link);
?>
Return current item: Basic Announce