SQL Problem.
#3

Код:
mysql_format(db_info, query, sizeof(query), "UPDATE players SET noticetext = '%e' WHERE pid = %i", params, GetPlayerDBId(playerid));
you have to enclose string with ' or "
and also, use %e instead of %s if the string can be inputted by player to escape string
Reply


Messages In This Thread
SQL Problem. - by AlexMSK - 11.01.2018, 00:30
Re: SQL Problem. - by Sew_Sumi - 11.01.2018, 02:14
Re: SQL Problem. - by X337 - 11.01.2018, 02:18
Re: SQL Problem. - by AlexMSK - 11.01.2018, 02:21
Re: SQL Problem. - by AlexMSK - 11.01.2018, 02:24

Forum Jump:


Users browsing this thread: 1 Guest(s)