Question about escaping strings
#3

You can just escape the strings manually by using the back-slash before apostrophes.
pawn Код:
new query[128];

format(query, sizeof(query), "INSERT INTO `table` ('Password') VALUES (\'%s\')", "password123");
Reply


Messages In This Thread
Question about escaping strings - by CoDeZ - 28.10.2012, 00:21
Re: Question about escaping strings - by CoaPsyFactor - 28.10.2012, 01:43
Re: Question about escaping strings - by ReneG - 28.10.2012, 02:17

Forum Jump:


Users browsing this thread: 1 Guest(s)