• 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!

Call global storages from database PHP

llamavani

Trinitium Rubidia Style!
Joined
Sep 17, 2009
Messages
173
Reaction score
3
Location
Guadalajara, Mexico
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
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
 
Back
Top