diff options
author | prashantsinalkar | 2016-01-18 17:21:33 +0530 |
---|---|---|
committer | prashantsinalkar | 2016-01-18 17:21:33 +0530 |
commit | 55db3481d2d9b17e8db4fd5b0d8436fd098ee4bb (patch) | |
tree | be2296895a526ce97774e2b2059291dc64bea1f5 | |
parent | 8faeb259426c70df40370d894c49c26f21cb103b (diff) | |
download | HTML-Email-Invitations-55db3481d2d9b17e8db4fd5b0d8436fd098ee4bb.tar.gz HTML-Email-Invitations-55db3481d2d9b17e8db4fd5b0d8436fd098ee4bb.tar.bz2 HTML-Email-Invitations-55db3481d2d9b17e8db4fd5b0d8436fd098ee4bb.zip |
done minoer changes
-rwxr-xr-x | unsubscribe.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unsubscribe.php b/unsubscribe.php index e4d6a44..7cb961c 100755 --- a/unsubscribe.php +++ b/unsubscribe.php @@ -1,4 +1,6 @@ <?php +error_reporting(E_ALL); +ini_set('display_errors', 1); require_once('connection.inc'); if (isset($_GET) && isset($_GET['key'])) { @@ -15,6 +17,7 @@ global $conn; // try to update user with specified information $email_id_hash = urldecode($email_id_hash); + // var_dump($email_id_hash);die; $sql = "SELECT email, unsubscribe, email_hash FROM sent_email WHERE email_hash = :email_id_hash AND event= :event"; $q = $conn->prepare($sql); $q->execute(array( @@ -29,7 +32,8 @@ { switch ($event) { - case 'scipy 2015': + + case 'scipy 2015': if ($row['unsubscribe'] == 0 && $row['email_hash'] == $email_id_hash) { $sql_up = "UPDATE sent_email SET unsubscribe = 1 WHERE email_hash =:email_id_hash "; |