Skip to content

Instantly share code, notes, and snippets.

/unsubscribe.php
Created Jan 15, 2017

Embed
What would you like to do?
<?php
include "config.php";
$key = $_GET['key'];
$query = mysql_query("DELETE FROM users WHERE hash='$key'");
if ($query) {
echo "<h1>You have Unsubscribed!</h1>";
}else{
mysql_errno();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.