php jika string sudah ada dalam database

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