llamavani
Trinitium Rubidia Style!
Hello community, I was searching how to call global storages from database in PHP code but I can't found somethin like this:
My idea is to call in this kind of codes for example
a) a global storage 'value'
whit key = 2100 + guild_id
somebody knows how?
- - - Updated - - -
bump
- - - Updated - - -
Bump
My idea is to call in this kind of codes for example
Code:
foreach($SQL->query('
SELECT
`g`.`id` AS `id`,
`g`.`name` AS `name`,
SUM(`p`.`level`) AS `level`,
COUNT(`p`.`name`) AS `count`,
AVG(`p`.`level`) AS `average`,
MIN(`p`.`level`) AS `min`,
MAX(`p`.`level`) AS `max`
FROM `players` p
LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id`
LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id`
WHERE `g`.`id` = `g`.`id`
GROUP BY `name`
ORDER BY `level` DESC
LIMIT 3
') as $guild)
a) a global storage 'value'
whit key = 2100 + guild_id
somebody knows how?
- - - Updated - - -
bump
- - - Updated - - -
Bump