php if string is already in database

105

php if string is already in database -

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

Comments

Submit
0 Comments