View Single Post
Author Message
fcastro16
Member
Join Date: Mar 2009
Old 03-11-2014 , 10:56   MySQL syntax error - single quote `
Reply With Quote #1

This line is giving me an error:
PHP Code:
formatex(szQuerycharsmax(szQuery), "REPLACE INTO `cuentas` ( `nick`, `steamID`, `frags`, `nivel` ) VALUES ( ^"%s^", ^"%s^", '%d', '%d' );"SZ_NameSZ_SteamIDg_frags[id], g_level[id] ); 
To my understanding, the ^"%s^" should make it work, but I keep the following error.

Quote:
L 03/11/2014 - 09:548: [gdlcuentasv2.amxx] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1
L 03/11/2014 - 09:55:04: [gdlcuentasv2.amxx] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1

Last edited by fcastro16; 03-11-2014 at 11:01.
fcastro16 is offline