27.03.2011, 14:14
Hello Guys, i have a Problem with MD5, i have Created a Login & Register System, but everytime
the Password is incorrect hmm ?
Thats the Code :
new Query[200], Pname[24];
GetPlayerName(playerid, Pname, 24);
new escpname[24];
mysql_real_escape_string(Pname, escpname);
format(Query, sizeof(Query), "SELECT * FROM `wcf1_user` WHERE `username` = '%s' AND `password` = '%s'", escpname, MD5_Hash(inputtext));
mysql_query(Query);
mysql_store_result();
the Password is incorrect hmm ?
Thats the Code :
new Query[200], Pname[24];
GetPlayerName(playerid, Pname, 24);
new escpname[24];
mysql_real_escape_string(Pname, escpname);
format(Query, sizeof(Query), "SELECT * FROM `wcf1_user` WHERE `username` = '%s' AND `password` = '%s'", escpname, MD5_Hash(inputtext));
mysql_query(Query);
mysql_store_result();