format to string question
#1

If i wanna doing a query in mysql, i do this

Quote:

new name[10];
name = "lorigio";
new Query[200];
format(Query, sizeof(Query), "update table set var = '%s'", name);
mysql_query(Query);

And after that i said O.o too lines for one query.

I wanna do it likes this
Quote:

new name[10];
name = "lorigio";
mysql_query(format("update table set var = '%s'", name)); <-- format return a string[]

it is possible?
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)