3D-kreativ Posted July 24, 2010 Share Posted July 24, 2010 Hi! I Use this code in the login process: $query = "SELECT userName FROM {$tableUser} WHERE userName = '{$user}' AND userPassword = md5('{$password}')"; if($res->num_rows === 1) { $_SESSION['accountUser'] = $row->userName; } else { But I find it strange that I can log in with "user" despite that it's "User" in the table? But I can't use "password" it must be "Password". Could someone be kind to explain why and perhaps tell me how to fix this? Thanks! Quote Link to comment Share on other sites More sharing options...
3D-kreativ Posted July 24, 2010 Author Share Posted July 24, 2010 I solved it after reading about COLLATE. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.