lib = $lib; $this->db = $this->lib->game->db; } public function run($player) { // Get the player's current requests, if any $q = $this->db->query( "SELECT tech FROM tech_trade_request " . "WHERE player = $player ORDER BY priority" ); $requests = array(); while ($r = dbFetchArray($q)) { array_push($requests, $r[0]); } return $requests; } } ?>