s_ainley87 Posted July 1, 2008 Share Posted July 1, 2008 Hello, I have been looking for days for an unsubscribe script, all I want is for, if an entered email matches one the database then that row is deleted...any ideas? Can any one help? Link to comment https://forums.phpfreaks.com/topic/112753-unsubscribe-script/ Share on other sites More sharing options...
dmccabe Posted July 1, 2008 Share Posted July 1, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.