01.03.2015, 22:50
Quote:
The difference between this native and mysql_tquery() is, that this type of query uses multi-threading, thus it's faster depending on how many connections are used. The number of connections can be specified in mysql_connect() through the pool_size parameter. Each connection resembles a thread. |
Basically, what will happen is that it will print 1 then print 2, after that the query will be done due to delay.
If you'd like to actually print it after it is finished, this is how:
pawn Код:
functionTest()
{
print("1");
mysql_pquery(MySQL_Handler, "SELECT * FROM `TableTest`", "QueryFinished");
}
forward QueryFinished();
public QueryFinished()
{
print("2");
}