Another weird request for help
I need a php script, that sums the values from certain keys from player_storage.
For example, you do a query like this:
Then you will get something like this:
So, what I need, is a php script that just returns 22028, I mean, the sum of the values.
Also, to avoid creating another post, does anyone knows how to hide decimals?
Like, turning 0.888888888889 to 0.888, 0.93023255814 to 0.930, 0.653846153846 to 0.653, etc
I need a php script, that sums the values from certain keys from player_storage.
For example, you do a query like this:
Code:
SELECT * FROM `player_storage` WHERE `key` = 366
Code:
player_id key value
3 366 757
67 366 17534
68 366 3737
So, what I need, is a php script that just returns 22028, I mean, the sum of the values.
Also, to avoid creating another post, does anyone knows how to hide decimals?
Like, turning 0.888888888889 to 0.888, 0.93023255814 to 0.930, 0.653846153846 to 0.653, etc
Last edited: