MySQL Question!
#5

Quote:
Originally Posted by Steeve_Smith
Посмотреть сообщение
OK thank you mate

Then, will I be able to use mysql_store_result, mysql_num_rows and mysql_free_result as usual?
Yes, but you will need to call it inside the callback given, not right after the query. So like:
pawn Код:
mysql_function_query(connectionHandle, "SELECT * FROM houses", false, "OnLoadHouses", "d", GetTickCount());

forward OnLoadHouses(time);
public OnLoadHouses(time)
{
    mysql_store_result();
    // whatever you need to do
    mysql_free_result();

    printf("time taken: %d ticks", GetTickCount() - time);
    return 1;
}
Reply


Messages In This Thread
MySQL Question! - by Steeve_Smith - 12.05.2012, 15:52
Re: MySQL Question! - by Vince - 12.05.2012, 16:04
Re : MySQL Question! - by Steeve_Smith - 12.05.2012, 16:06
Re: MySQL Question! - by [BG]PREDATOR - 12.05.2012, 16:14
Re: Re : MySQL Question! - by Vince - 12.05.2012, 16:18
Re : MySQL Question! - by Steeve_Smith - 12.05.2012, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)