$check_email = $pdo->query("SELECT * FROM users WHERE email='[email protected]'"); if ($check_email) { // found }