MySQL count?
#2

mysql_free_result is not supported in r39-2...
To get number of rows do like this :
pawn Код:
mysql_tquery(handle, "SELECT NULL FROM `goldpots`", "MyCallback");

//now in callback
forward MyCallback();
public MyCallback()
{
        new rows, fields;
    cache_get_data(rows, fields, dbHandle);
        //now rows = number of rows use it as u want to
        return 1;
}
Reply


Messages In This Thread
MySQL count? - by Derexi - 28.02.2015, 14:21
Re: MySQL count? - by BroZeus - 28.02.2015, 14:30
Re: MySQL count? - by Vince - 28.02.2015, 14:54
Re: MySQL count? - by ball - 28.02.2015, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)