php - Mysql REGEX Matching query -
what correct query match string variable mysql field? example:
$var_surname = $_post['surname']; $var_surname = strtolower($var_surname); select surname tblname lower(surname) regex $var_surname .......... .......... if($check > 0) { surname exists } else { successful }
any appreciated.
i don't understand, why using regex (should regexp way) ? do
"select surname tblname lower(surname) = '$var_surname'"
Comments
Post a Comment