mysql saving
#4

format(szLargeString, sizeof(szLargeString), "UPDATE `playeraccounts` SET `forumname` = '%s' WHERE `playername` = '%s'", szPlayerName,name);

Use UPDATE function.
Also see where I set bold, NEVER forget to use mysql_real_escape_string made string in the queries.
Reply


Messages In This Thread
mysql saving - by AndreiWow - 27.12.2015, 13:49
Re: mysql saving - by Boar - 27.12.2015, 14:12
Re: mysql saving - by zPain - 27.12.2015, 14:16
Re: mysql saving - by ikey07 - 27.12.2015, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)