Location: PHPKode > projects > PHPmyEXIM > forward_delete.php
<?php
require("session.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title></title>
	<link rel=stylesheet type="text/css" href="global.css">
</head>
<body>
<?php
if (isset($_GET['domain']))
{
	$domain = $_GET['domain'];
}
else
{
	$domain = "";
}

if (isset($_GET['user']))
{
	$name = $_GET['user'];
}
else
{
	$name = "";
}

if (isset($_GET['alias']))
{
	$alias = $_GET['alias'];
}
else
{
	$alias = "";
}

require("config.php");
$tabelle = "mail_users";

/* Connection to the Database */ 
MYSQL_CONNECT($server, $user, $passw) or die ( "<H3>unable to connect to database server</H3>");
MYSQL_SELECT_DB($datenbank) or die ( "<H3>database does not exist</H3>");

$result=MYSQL_QUERY("DELETE FROM $tabelle where domain_name = '$domain' and mbox_name = '$name' and alias = '$alias'");
echo"
<p>Your forward-account (<i>$name@$domain</i>) has been deleted successfully.<p><p><a href=\"forward_overview.php?domain=$domain\" target=\"main\"><img src=\"images/back.gif\" border=\"0\"></a></p>
";
?>
</body>
</html>

Return current item: PHPmyEXIM