Mercurial > hg > ywww
comparison user/unsubscribe.php @ 15:385ddd7c4b55 testing
use test_db.php to get mysqld_test instance
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 19 Feb 2017 16:17:53 +0000 |
parents | 077b0a0a3e6d |
children |
comparison
equal
deleted
inserted
replaced
14:1477b5e6dd16 | 15:385ddd7c4b55 |
---|---|
1 <?PHP | 1 <?PHP |
2 | 2 |
3 $email = strval($_GET['email']); | 3 $email = strval($_GET['email']); |
4 | 4 |
5 include "../../private/db.php"; | 5 include "../../../private/db_test.php"; |
6 | 6 |
7 $query = "update userpref set ReceiveEmail = 0 where UserID in (select UserID from user where Email = '$email') "; | 7 $query = "update userpref set ReceiveEmail = 0 where UserID in (select UserID from user where Email = '$email') "; |
8 $results = mysqli_query($link, $query); | 8 $results = mysqli_query($link, $query); |
9 | 9 |
10 if ( $results ) | 10 if ( $results ) |