19.09.2012, 14:55
Thank you first, but this is not exactly what I want.
I need to take some values usualy from the mysql DB, so I write this as an function,so In the old version, I can use like this:
but if I let id1 and id2 as global variable.
It realy makes me crazy!!!!!!!
I need to take some values usualy from the mysql DB, so I write this as an function,so In the old version, I can use like this:
Code:
id1=MySQLCheckAccount(name1); id2=MySQLCheckAccount(name2); num=id+id2; .... ...
Code:
MySQLCheckAccount(name1); MySQLCheckAccount(name2); num=id1+id2; //when the code gose to here, id1 and id2 are still NULL,becaues the query takes times! but it very hard to write the following code into the callbacks, due to the complicated code. .... ...

