Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php if string is already in database

$check_email = $pdo->query("SELECT * FROM users WHERE email='test@example.com'");
if ($check_email) {
    // found
}
Source by phpdelusions.net #
 
PREVIOUS NEXT
Tagged: #php #string #database
ADD COMMENT
Topic
Name
5+2 =