i need to know how can i compare two strings one from database uppercase ex:'SmaRtic' and the other lower case ex:'smartic'.
that is my code when the user post his data :
[PHP]$QUERY = mysql_query("SE LECT User FROM users WHERE User='$User'");
$R = mysql_fetch_ass oc($QUERY);
if(strtolower($ R['User']) == $User){
$errors['username']='Someone has already chosen that username. Please choose another one!.';
}[/PHP]
that is my code when the user post his data :
[PHP]$QUERY = mysql_query("SE LECT User FROM users WHERE User='$User'");
$R = mysql_fetch_ass oc($QUERY);
if(strtolower($ R['User']) == $User){
$errors['username']='Someone has already chosen that username. Please choose another one!.';
}[/PHP]
Comment