$delete from the $table table!", "YES", "MENU");
}
$query = "SELECT * FROM mailbox WHERE username='$delete' AND domain='$sessid_domain'";
$result = db_query ("$query");
if ($result['rows'] == 1) {
$query = "DELETE FROM mailbox WHERE username='$delete' AND domain='$sessid_domain'";
$result = db_query ("$query");
if ($result['rows'] == 1) {
header("Location: $url");
} else {
print_error ("Unable to delete entry $delete from the $table table!", "YES", "MENU");
}
}
header("Location: $url");
}
if ($table == "mailbox") {
$query = "DELETE FROM mailbox WHERE username='$delete' AND domain='$sessid_domain'";
$result = db_query ("$query");
if ($result['rows'] != 1) {
print_error ("Unable to delete entry $delete from the $table table!", "YES", "MENU");
}
$query = "DELETE FROM alias WHERE address='$delete' AND domain='$sessid_domain'";
$result = db_query ("$query");
if ($result['rows'] == 1) {
header("Location: $url");
} else {
print_error ("Unable to delete entry $delete from the $table table!", "YES", "MENU");
}
}
?>