• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Getting count of something in table.

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
I wanna count something in table killscount:

xdxd2.jpg


I wannna sum up it 3+1+x+x+x (plus everything what is in table killscount)

can anyone help me?
 
SELECT SUM(`level`) as totalLevel FROM `players`
-> Example on total level

SELECT SUM(`killscount`) FROM `player_kills`
-> Yours should be like that, adjust the table.
 
SELECT SUM(`level`) as totalLevel FROM `players`
-> Example on total level

SELECT SUM(`killscount`) FROM `player_kills`
-> Yours should be like that, adjust the table.


Then to get result
$opgnnadf = $row27['killscount'];

??
/\
nnot work xD
 
$irutqwers = mysql_query("SELECT SUM(`killscount`) as killscount FROM `players` WHERE nationallity = '$qretbarqe'");
Try that.
 
Last edited:
Back
Top