Unsubscribe
if ($unsub != "") {
include($_SERVER['DOCUMENT_ROOT']."/includes/globals.phtml");
penn_connect();
$sql ="SELECT email FROM emails WHERE email = '$unsub'";
$rows = mysql_query($sql) or die (mysql_error());
$myrow = mysql_fetch_row($rows);
if ($myrow[0] != "") {
$update = mysql_query("UPDATE emails SET active='NO' WHERE email = '$unsub'") or die (mysql_error());
?>
has been successfully removed from our Newsletter list.
Thank you for your interest!!
} else { ?>
Email address was not found, please verify your spelling and try again. Feel free to contact us if you need additional assistance.
}
} else {
?>
} ?>
|
|