Hello! I need an expert for PHP :
Well I started to write a new gm panel (and an user panel also), but I stuck on the encrypt method used by perfect world for the password...
Check my code and tell me what is wrong...
But when I use a basic md5 encrypted password it works perfectly and I can login on my panel... But not in perfect world because it use the first method for the password...
Thx in advance for future replies :
Well I started to write a new gm panel (and an user panel also), but I stuck on the encrypt method used by perfect world for the password...
Check my code and tell me what is wrong...
PHP:
// Perfect World encrypt password method
$encrypted_Password="0x".md5($Login.$Password);
$sql="SELECT * FROM users WHERE name='$Login' and passwd='$encrypted_Password'";
$result=mysql_query($sql);
But when I use a basic md5 encrypted password it works perfectly and I can login on my panel... But not in perfect world because it use the first method for the password...
PHP:
// Normal encrypt password method
$encrypted_Password=md5($Password);
$sql="SELECT * FROM users WHERE name='$Login' and passwd3='$encrypted_Password'";
$result=mysql_query($sql);
Thx in advance for future replies :