SQL question
#2

Add '' around the %d's and %s's.

(cant remember what they're called :P)

Example:

format(Query, sizeof(Query), "UPDATE `users` SET money = '%d', score = '%d', noteOne = '%s' WHERE username = '%s'", bla, bla ...);
Reply


Messages In This Thread
SQL question - by vIBIENNYx - 28.05.2012, 18:22
Re: SQL question - by jamiesage123 - 28.05.2012, 18:29
Re: SQL question - by ReneG - 28.05.2012, 18:35
Re: SQL question - by iGetty - 28.05.2012, 18:38
Re: SQL question - by vIBIENNYx - 28.05.2012, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)