format to string question
#3

Quote:

new szDestination[100];
mysql_format(connectionHandle, szDestination, "SELECT * FROM `%s` WHERE `bar` = '%e' AND `foobar` = '%f' LIMIT %d", "foobar", "escape'me\"please", 1.2345, 1337);
// the variable 'szDestination' contains now the formatted query (including the escaped string)
mysql_query(szDestination);

Even this use szDestination[100];
i wanna execute query not store query and then execute it.
Reply


Messages In This Thread
format to string question - by lorigio - 02.02.2012, 17:52
Re: format to string question - by [HiC]TheKiller - 02.02.2012, 17:56
Re: format to string question - by lorigio - 02.02.2012, 18:03
Re: format to string question - by lorigio - 04.02.2012, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)