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

Gesior Count storage

xLosT

Member
Joined
Jan 11, 2010
Messages
1,022
Reaction score
13
Location
Brasil, Rio Grande do Sul
How do I display the total number of storage on a page?
gesior 1.0

exemple
Code:
db.query('SELECT COUNT(*) as `player_storage` FROM 'key' = 81262 ...?
[code]

Show 'value' number from storage 81262
 
Code:
Select count (*) FROM table name where(?) key = value

I think properly it should look like this :d
 
I did not understand how to do it.

Here example

Code:
`player_storage` SET `value` = '53' WHERE `player_storage` AND `player_storage`.`key` =81262;

test this dont work
Code:
   $kills = $SQL->query('SELECT COUNT(*) as (`player_storage`) AS `value` FROM `key` = 24034;'
 
Last edited:
I think it should be more like this one...
Code:
$kills = $SQL->query('SELECT COUNT(*) as (`player_storage`) AS `value` FROM `player_storage` WHERE `key` = 24034 AND `player_id` = '.$player->getId())->fetch();
 
Last edited:
one player, is for frags
earch kill +1 of storage 24034
i have this
Code:
        $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Killed:</TD><TD>'.$kills['frags'].'</TD></TR>';
and need the code '.$kills
 
Back
Top