11.02.2012, 12:39
I'm just gonna say, the SA-MP encryption methods are usually in all capitals where as in PHP they are not, best to strtoupper($password) before comparing the strings.
Try doing this
For better management i tend to do any thing I need to prior to using it so I would
Try doing this
PHP код:
if(!isset($_SESSION["username"])) $result = mysql_query("SELECT * FROM `players` WHERE Name='$username' AND Password=strtoupper(hash( 'whirlpool',$password))");
PHP код:
$hashedPassword = strtoupper(hash( 'whirlpool',$password));
if(!isset($_SESSION["username"])) $result = mysql_query("SELECT * FROM `players` WHERE Name='$username' AND Password='$hashedPassword'");