Counting players MYSQL
#7

I do not know your entire database structure - so I can't guarantee anything - but I believe this is the query you want;
PHP код:
SELECT FactionCOUNT(*) AS Members FROM players GROUP BY Faction HAVING Faction '%s' 
If you omit the HAVING Faction part then it will show a list of all factions and the amount of members.
Reply


Messages In This Thread
Counting players MYSQL - by MadafakaPro - 13.01.2014, 11:43
Re: Counting players MYSQL - by iJumbo - 13.01.2014, 11:48
Re: Counting players MYSQL - by iBots - 13.01.2014, 12:26
Re: Counting players MYSQL - by MadafakaPro - 13.01.2014, 12:27
Re: Counting players MYSQL - by iJumbo - 13.01.2014, 12:44
Re: Counting players MYSQL - by RajatPawar - 14.01.2014, 04:05
Re: Counting players MYSQL - by Vince - 14.01.2014, 06:49

Forum Jump:


Users browsing this thread: 2 Guest(s)