public function fetch_object($sql)
    {

        if (empty($sql)) return false;

        $res    = $this->query($sql);
        $result = @mysql_fetch_object($res);
        $this->free($res);

        return $result;
    }
public function fetch_object($sql)
    {

        if (empty($sql)) return false;

        $res    = $this->query($sql);
        $result = @mysql_fetch_object($res);
        $this->free($res);

        return $result;
    }
public function fetch_object ( $ sql ) { if ( empty ( $ sql ) ) return false ; $ res = $ this -> query ( $ sql ) ; $ result = @ mysql_fetch_object ( $ res ) ; $ this -> free ( $ res ) ; return $ result ; }
fetches an object of the current row

@param $sql string

@return bool object
fetches an object of the current row