$this->online = $this->user['online']; $this->warning = $this->user['warning']; $this->proplayer = $this->user['proplayer']; $this->parent = $this->user['parent']; $this->linggrowth = $this->user['linggrowth']; $this->linggyest = $this->user['linggyest']; } function getworldinfo() { $this->worldroom = $this->user['wroom']; $this->maxwbank = $this->user['maxwbank']; } function getbountyinfo() { $this->bounty = $this->user['bounty']; $this->bountiedby = $this->user['bountyplaceby']; } function getbonus($owner) { $power = mysql_query("select owner,CAST(SUM(shop.atk*qty) as unsigned) as atka,CAST(SUM(shop.def*qty) as unsigned) as defa from inventory, shop where `inventory`.owner='{$owner}' and `shop`.sid=`inventory`.itemid group by `inventory`.owner"); $power1 = mysql_fetch_assoc($power); $itempow = mysql_query("select owner,CAST(SUM(iteminv.atk) as unsigned) as atkb,CAST(SUM(iteminv.def) as unsigned) as defb from iteminv where `iteminv`.owner='{$owner}' and iteminv.status='E' group by `iteminv`.owner"); $itempow1 = mysql_fetch_assoc($itempow); } } $info = new userinfo(); $info->fetchinfo(1); $info->getinfo(); echo $info->id; echo $info->username; include "includes/footer.inc.php";