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! Link to comment https://forums.phpfreaks.com/topic/208759-question-about-login/ 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. Link to comment https://forums.phpfreaks.com/topic/208759-question-about-login/#findComment-1090607 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.