[MYSQL] How to retrieve information from multiple rows with one query.
#2

I'd link you to my thread, but it's currently a bit outdated (no caching).
pawn Код:
for(new i, j = cache_get_row_count(); i < j; i++)
{
    new result[MAX_PLAYER_NAME];
    cache_get_row(i, 0, result);

    printf("result %d: %s", i, result);
}
That would be your basic structure. I don't know what you intend to do with the results, but you could also parse the results into a global array directly.
Reply


Messages In This Thread
[MYSQL] How to retrieve information from multiple rows with one query. - by AA9 - 23.03.2014, 15:58
Re: [MYSQL] How to retrieve information from multiple rows with one query. - by Vince - 23.03.2014, 16:14
Re: [MYSQL] How to retrieve information from multiple rows with one query. - by AA9 - 23.03.2014, 16:28
Re: [MYSQL] How to retrieve information from multiple rows with one query. - by Vince - 23.03.2014, 16:39
Re: [MYSQL] How to retrieve information from multiple rows with one query. - by AA9 - 23.03.2014, 16:45

Forum Jump:


Users browsing this thread: 2 Guest(s)