Location: PHPKode > projects > Basic Announce > Basic Announce Version 4.0/pages/deleter.php
<?php
require'../inc/config.inc.php';
?>
<?
$id=$_POST['id'];
$link = mysql_connect("$server","$usr","$pswd");
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