Hello,
I'm creating a voting system and I was wondering if you could help me. I have 2 columns - gid,IP. `gid` is the ID for game and `IP` is for IP Address.
gid | IP
6 |xx.xxx.xx
7 |xx.xxx.xx
6 |xx.xxx.xx
6 |xx.xxx.xx
I want to display the results like this:
GID | Votes
6 | 3
7 | 1
As you can see, it counts how many votes each has. Does anyone knows how to do this? Thank You.
I'm creating a voting system and I was wondering if you could help me. I have 2 columns - gid,IP. `gid` is the ID for game and `IP` is for IP Address.
gid | IP
6 |xx.xxx.xx
7 |xx.xxx.xx
6 |xx.xxx.xx
6 |xx.xxx.xx
I want to display the results like this:
GID | Votes
6 | 3
7 | 1
As you can see, it counts how many votes each has. Does anyone knows how to do this? Thank You.