Removal Successful";
} else {
$msg = "
Removal Failed
";
}
$ml_id = $_GET['ml'];
$sql = "SELECT * FROM ml_lists WHERE ml_id = '" . $ml_id . "';";
$result = mysql_query($sql)
or die('Invalid query: ' . mysql_error());
if (mysql_num_rows($result)) {
$row = mysql_fetch_array($result);
$msg .= "You have been removed from the " .
$row['listname'] . " mailing list.
";
} else {
$msg .= "Sorry, could not find Mailing List id#{$ml_id}");
}
$msg .= "Return to Mailing List Signup page";
echo $msg;
?>