11.05.2012, 22:07
Hi! Can somebody tell me a function in mysql which can count the number of players from the database?
+REP

SELECT COUNT(*) FROM accounts
mysql_query("SELECT * FROM accounts");
mysql_store_result();
new rows = mysql_num_rows();
mysql_free_result();
printf("There are %d accounts",rows);
mysql_query("SELECT COUNT(`Username`) FROM Accounts");
SELECT COUNT(*) FROM accounts