update statistics system (include medal and top 10 too)

This commit is contained in:
unknown
2012-05-06 00:31:50 +03:00
parent f6338bc970
commit fbaa6af3a5
8 changed files with 42 additions and 30 deletions
+7 -1
View File
@@ -1862,7 +1862,13 @@
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getUserByTribe($tribe){
$q = "SELECT * FROM " . TB_PREFIX . "users where tribe = $tribe";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getHeroRanking() {
$q = "SELECT * FROM " . TB_PREFIX . "hero WHERE dead = 0";
$result = mysql_query($q, $this->connection);