Mercurial > hg > ywww
comparison user/unsubscribe.php @ 49:a67bf725e87b
put both paths in include_path and depend on that
author | Charlie Root |
---|---|
date | Wed, 16 Jan 2019 13:42:15 -0500 |
parents | 077b0a0a3e6d |
children |
comparison
equal
deleted
inserted
replaced
48:da133c130c1d | 49:a67bf725e87b |
---|---|
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 "db.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 ) |