mysql question
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The first parameter is the rowid. It is 0 because there is only 1 row in the table with the player's name.

If for example you have selected all the data from a table without a WHERE clause in the query, you'd have to use a loop and use the variable for the rowid:
pawn Код:
for (new i, j = cache_get_row_count(); i != j; i++)
{
    ... = cache_get_field_content_int(i, "...");
}
Oh thanks That would be useful for other systems
Reply


Messages In This Thread
mysql question - by ilijap - 24.05.2016, 14:00
Re: mysql question - by Konstantinos - 24.05.2016, 14:08
Re: mysql question - by ilijap - 24.05.2016, 14:14
Re: mysql question - by JasperM - 24.05.2016, 14:30
Re: mysql question - by ilijap - 24.05.2016, 14:35

Forum Jump:


Users browsing this thread: 2 Guest(s)