Jump to content

Unsubscribe Script


s_ainley87

Recommended Posts

Assuming you know hwo to connect to the table containing the email then it is simple:

 

$delete = "DELETE FROM `tablename` WHERE `email` = '$email'";
if (mysql_query($delete)) {
echo "Email removed";
} else { 
echo "E-mail address not found";
}

 

That is very simplified but it should give you the idea

 

Link to comment
https://forums.phpfreaks.com/topic/112753-unsubscribe-script/#findComment-579098
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.