Count total accounts
#2

Quote:
Originally Posted by Nin9r
Посмотреть сообщение
Help:

Код HTML:
 new Cache: cachecheck = mysql_query(handle, "SELECT COUNT(playerID) from playeraccounts");
	numberaccounts = cache_get_row_count();
	cache_delete(cachecheck);
The result will be 1. What's wrong?
Well, I didn't use count so far but this supposed to.work:
Код HTML:
 new Cache: cachecheck = mysql_query(handle, "SELECT null from playeraccounts");
	numberaccounts = cache_get_row_count();
	cache_delete(cachecheck);
Reply


Messages In This Thread
Count total accounts - by Nin9r - 22.02.2017, 13:15
Re: Count total accounts - by jlalt - 22.02.2017, 13:17
Re: Count total accounts - by Nin9r - 22.02.2017, 13:24
Re: Count total accounts - by X337 - 22.02.2017, 14:08

Forum Jump:


Users browsing this thread: 2 Guest(s)