Changeset 307 for minimanager/stat.php


Ignore:
Timestamp:
Mar 13, 2008, 8:18:42 PM (17 years ago)
Author:
george
Message:

Aktualizace na minimanager 0.1.6g.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/stat.php

    r304 r307  
    6969
    7070 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']);
    71  $query = $sql->query("SELECT count(*) FROM `character`");
     71 $query = $sql->query("SELECT count(*) FROM `characters`");
    7272 $total_chars = $sql->result($query,0);
    7373
     
    9898
    9999 //there is always less hordies
    100  $query = $sql->query("SELECT count(guid) FROM `character` WHERE race IN(2,5,6,8,10)");
     100 $query = $sql->query("SELECT count(guid) FROM `characters` WHERE race IN(2,5,6,8,10)");
    101101 $horde_chars = $sql->result($query,0);
    102102 $horde_pros = round(($horde_chars*100)/$total_chars ,1);
     
    128128// RACE
    129129foreach ($race as $id){
    130         $query = $sql->query("SELECT count(guid) FROM `character` WHERE race = $id[0] $order_class $order_level $order_side");
     130        $query = $sql->query("SELECT count(guid) FROM `characters` WHERE race = $id[0] $order_class $order_level $order_side");
    131131        $race[$id[0]][2] = $sql->result($query,0);
    132132        $race[$id[0]][3] = round((($race[$id[0]][2])*100)/$total_chars,1);
     
    151151// CLASS
    152152foreach ($class as $id){
    153                 $query = $sql->query("SELECT count(guid) FROM `character` WHERE class = $id[0] $order_race $order_level $order_side");
     153                $query = $sql->query("SELECT count(guid) FROM `characters` WHERE class = $id[0] $order_race $order_level $order_side");
    154154                $class[$id[0]][2] = $sql->result($query,0);
    155155                $class[$id[0]][3] = round((($class[$id[0]][2])*100)/$total_chars,1);
     
    174174// LEVEL
    175175foreach ($level as $id){
    176                 $query = $sql->query("SELECT count(guid) FROM `character` WHERE SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) >= $id[1]
     176                $query = $sql->query("SELECT count(guid) FROM `characters` WHERE SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) >= $id[1]
    177177                                                                AND SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 35), ' ', -1) <= $id[2] $order_race $order_class $order_side");
    178178                $level[$id[0]][3] = $sql->result($query,0);
Note: See TracChangeset for help on using the changeset viewer.