$check_email = $pdo->query("SELECT * FROM users WHERE email='test@example.com'"); if ($check_email) { // found }