I want to check if username exists in Database but I have problem Ex : If I have username = jack and another register with username = JaCk
It accepts I want to check the full username with lowercase and uppercase and refuse such cases (jack - Jack - JaCk ....)
$stmtr = $DB_con->prepare("SELECT username FROM users WHERE username=:username");
$stmtr->bindparam(":username", $val['username']);
$stmtr->execute();
$row=$stmtr->fetch(PDO::FETCH_ASSOC);
if($rowr['username']==$val['username']) {
echo "Exists";
}