Counting something from a MYSQL table
#1

Hello guys,im kinda newbie in mysql scripting.
Today i want to get some tips on how to make a /factions cmd.
When you type /factions,it shows the faction name and the members in it
example:
PHP код:
Police Department5/10 members 
,and also to count offline and online players.
On mysql i got 2 columns: Leader and Member.
I got an idea to count how for example for faction 1 [ police deparment] to count how many players have 1 on leader or member,but i dont really know how to do it.any tips?ty in advance
Reply


Messages In This Thread
Counting something from a MYSQL table - by PepsiCola23 - 17.11.2016, 09:59
Re: Counting something from a MYSQL table - by JaKe Elite - 17.11.2016, 10:11
Re: Counting something from a MYSQL table - by PepsiCola23 - 17.11.2016, 10:30
Re: Counting something from a MYSQL table - by Vince - 17.11.2016, 10:48
Re: Counting something from a MYSQL table - by PepsiCola23 - 17.11.2016, 12:00

Forum Jump:


Users browsing this thread: 3 Guest(s)