I have this .php script to receive username and password from another page:
$req2 = $bdd->prepare('SELECT * FROM users WHERE login="'.$_POST['val1'].'"and password="'.$_POST['val2'].'"');
$req2 -> execute();
My database accepts GBK language, but when i enter a valid GBK symbol in hexadecimal(0xbf5c which a chinese symbol) the query does not work (but it works with the chinese symbol directly).
So, is there a function in sql to transform hexadecimals in GBK symbol ?
Thanks