MySQL problem
#4

If you're updating values that are already in the database, you just use..

Just an example

PHP код:
new query2[200];
mysql_format(mysqlquery2 sizeof(query2), "UPDATE `users` SET PS = 'abc', SC = '%d,' MN = '%d', DT = '%d' WHERE PN = '%e'"GetPlayerScore(playerid), GetPlayerMoney(playerid), deaths[playerid], playername); 
mysql_query(mysqlquery2); 
If you don't want to use mysql_format use %q for strings to escape them.

Though many would recommend saving with their database ID, instead of their usernames
Reply


Messages In This Thread
MySQL problem - by IceBilizard - 09.12.2016, 06:18
Re: MySQL problem - by jlalt - 09.12.2016, 06:19
Re: MySQL problem - by IceBilizard - 09.12.2016, 06:29
Re: MySQL problem - by itsCody - 09.12.2016, 06:30

Forum Jump:


Users browsing this thread: 1 Guest(s)