if(MD5($admin['username'].$pwd) != $admin['password']){ exit(json_encode(array('code'=>1,'msg'=>' wrong password'))); }
First check if $admin['username'].$pwd is passed in correctly, then print them out separately and compare them manually
First check if $admin['username'].$pwd is passed in correctly, then print them out separately and compare them manually