_table ; $query = Doo::db ()->query ( $sql ); $result = $query->fetch (); return $result; } public function get_fund_by_amount(){ $sql = "SELECT * from " . $this->_table ." where amount>0 limit 1"; $query = Doo::db ()->query ( $sql ); $result = $query->fetch (); return $result; } public function set_fund_amount_spread($amount="+1",$id=0){ $sql = "UPDATE `" . $this->_table . "` SET `amount` = `amount` " . $amount . " WHERE `id` = " . $id; $query = Doo::db ()->query ( $sql ); } } ?>