I want my login.php
to check if the password is uppercase, because when it exists, it recognizes it, since I have my database with the collation utf8_general_ci
. I have already tried collation in utf8_bin
and latin1_general_cs
but recognize uppercase letters as lowercase.
Query in php
:
$id = $_POST['id'];
$password = $_POST['pw'];
$consulta = mysql_query("SELECT id,password,tipo_ut FROM utilizador WHERE id ='".mysql_real_escape_string($id)."' AND password = '".mysql_real_escape_string($password)."' LIMIT 1");
Does anyone have another suggestion? And will there be any problem changing an entire database from utf8_general_ci
to any other?