Change password(MySQL)
#3

Quote:
Originally Posted by justjamie
Посмотреть сообщение
PHP код:
WP_Hash(Player[playerid][Password], 129inputtext);
mysql_format(koneksiquerysizeof(query), "UPDATE `users` SET `Password` = '%s' WHERE `Name` = '%e'",inputtextPlayerName(playerid));
mysql_query(koneksiquery); 
Why are you replacing %e with %s? %e is needed to escape the string. Also, the hashed password is stored in the Player[playerid][Password], using inputtext isn't needed either.
Reply


Messages In This Thread
Change password(MySQL) - by Problems - 27.06.2016, 17:06
Re: Change password(MySQL) - by justjamie - 27.06.2016, 17:09
Re: Change password(MySQL) - by Sjn - 27.06.2016, 17:19
Re: Change password(MySQL) - by Problems - 27.06.2016, 18:21
Re: Change password(MySQL) - by Problems - 27.06.2016, 19:21
Re: Change password(MySQL) - by Logic_ - 27.06.2016, 19:53
Re: Change password(MySQL) - by DRIFT_HUNTER - 27.06.2016, 19:54
Re: Change password(MySQL) - by Problems - 27.06.2016, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)