Advertisement
KaLu17

$this->DB->query

Jun 16th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <php>
  2. $this->DB->query('SELECT * FROM vc_players');
  3. $count_total = $this->DB->getTotalRows();
  4.  
  5. $this->DB->query('SELECT * FROM vc_players WHERE logged <> 0');
  6. $count_online = $this->DB->getTotalRows();
  7.  
  8. $game = '<center><h2 class="ipsType_subtitle">Mamy łącznie <span class="ipsBadge ipsBadge_green">'.$count_online.'</span> graczy on-line i <span class="ipsBadge ipsBadge_purple">'.$count_total.'</span> postaci.</h2></center>';
  9. </php>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement