Forum Moderators: coopster
$plresult = mysql_query("SELECT * FROM user_char where name LIKE '$charname'", $link) or die ("query 1: " . mysql_error());
But that does not work, if I put a capital in a name already being used I can sign up with it, how can I alter this query for case insensitivity?
[dev.mysql.com...] :
The following two statements illustrate that string comparisons are case-insensitive unless one of the operands is a binary string:mysql> SELECT 'abc' LIKE 'ABC';
-> 1
mysql> SELECT 'abc' LIKE BINARY 'ABC';
-> 0