11.03.2018, 15:07
Try moving
below mysql_tquery(g_SQL, query); because you're now getting the number of rows before actually getting the rows.
PHP код:
new rows = cache_num_rows();