16.06.2016, 09:49
How to escape a string corectly?
or
HTML Code:
mysql_real_escape_string(aString, aString); format(szMessage, sizeof(szMessage), "INSERT INTO punsishes (text, playerID) VALUES ('%s', '%d')", aString,PlayerVar[playerid][pInternalID]); mysql_tquery(handle,szMessage);
HTML Code:
format(szMessage, sizeof(szMessage), "INSERT INTO punsishes (text, playerID) VALUES ('%s', '%d')", aString,PlayerVar[playerid][pInternalID]); mysql_real_escape_string(szMessage, szMessage); mysql_tquery(handle,szMessage);