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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/112753-unsubscribe-script/#findComment-579098 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.