president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi everyone, I'm using djarek's cast system and I'm having a problem to how many casts are online and how many spectadors does it have.
I'm using the code below and having this problem:
Thanks.
I'm using the code below and having this problem:
Code:
$cast = $SQL->query('SELECT COUNT(*) FROM `live_casts` WHERE `player_id`>0;')->fetch();
$spectators = $SQL->query('SELECT SUM(`spectators`) FROM `live_casts`;')->fetch();
<strong><?php echo ' '.$cast[0].''; ?></strong> cast online with <strong><?php echo ' '.$spectators[0].''; ?></strong> spectators.
Thanks.