19.01.2015, 06:42
I don't see any threaded query, as he's using mysql_query, which is a non-threaded function.
Don't use the rows variable, as mysql will only return one row, which has the count value.
Just get the value from your result at row 0, field 0 using "cache_get_row_int(0, 0)".
Don't use the rows variable, as mysql will only return one row, which has the count value.
Just get the value from your result at row 0, field 0 using "cache_get_row_int(0, 0)".

