How would I convert this to a PDO statement? Read about MySQL injections and so am going through entire site to convert all MySQL queries to PDO and want to make sure I'm doing it right.
PHP:
if(isset($_GET['email']) && isset($_GET['token'])) { global $conn; $email = $_GET['email']; $token = $_GET['token']; $sql = $conn->query("SELECT u_id FROM users WHERE email='$email' AND token='$token' AND token<>'' AND tokenExpire > NOW() ");
1.4m articles
1.4m replys
5 comments
57.0k users