28.02.2015, 14:30
mysql_free_result is not supported in r39-2...
To get number of rows do like this :
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;
}