2
I wish my login.php
check if the password has uppercase, because when it exists, it recognizes, because I have my database with the collation utf8_general_ci
. I already tried to put the collation on utf8_bin
and latin1_general_cs
but recognize capital 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 of utf8_general_ci
to some other?
I edited the question because "phpmyadmin" is not a "database", read this to understand the differences: What is the difference between mysql and phpmyadmin?
– Guilherme Nascimento
Perfect but to differentiate minusculas of upper case puts also in login if the entry contains login and password.
– Eduardo Boas