Mysql Help
#1

PHP код:
mysql_format(MySQLConszQuerysizeof(szQuery), "select Faction, count(*) from players GROUP BY Faction"); 
This mysql code is working but its not giving me the result which i need ?
it shows like this
PHP код:
+---+------+----+
Faction COUNT(*) |
+---+------+----+
2      |        |
3      |        |
+---+------+----+ 
this code does'nt show the empty factions like 0 1 4 5 6
i want a mysql code to give me result like this
PHP код:
+---+------+----+
Faction COUNT(*) |
+---+------+----+
0      |        |
1      |        |
2      |        |
3      |        |
4      |        |
5      |        |
6      |        |
+---+------+----+ 
please help me
Reply


Messages In This Thread
Mysql Help - by muhsah007 - 08.08.2015, 14:04
Re: Mysql Help - by Vince - 08.08.2015, 14:53
Re: Mysql Help - by muhsah007 - 08.08.2015, 14:56
Re: Mysql Help - by muhsah007 - 08.08.2015, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)