21.04.2017, 21:01
Try echo'ing the password hash that was found in the database for the given user, and the hashed password that is inserted into the MySQL query (in a safe local environment of course). Don't forget to remove the echo function afterwards.
It might be that the SA-MP server saves the hashed password in all uppercase letters, while the hash from php might be all lowercase (or maybe it's exactly the opposite). I've also had an issue like this, printing relevant data here and there really helps with debugging.
If it appears to be the letter case that's the problem, then you have to find a way to change the code from the SQL query in login.php to all uppercase. No worries though, there are functions for that! (strtoupper, strtolower)
It might be that the SA-MP server saves the hashed password in all uppercase letters, while the hash from php might be all lowercase (or maybe it's exactly the opposite). I've also had an issue like this, printing relevant data here and there really helps with debugging.
If it appears to be the letter case that's the problem, then you have to find a way to change the code from the SQL query in login.php to all uppercase. No worries though, there are functions for that! (strtoupper, strtolower)