src/Bi/Db.php
final function Query($qry)
    {
        $GLOBALS['qry_count']++;
        $GLOBALS['qry'].=$GLOBALS['qry_count'].':'.$qry."\n";

        $this->last_query = $qry;

        $this->query_result = $this->ExecQuery($qry);

        if ($this->query_result) {
            $this->SetQuerySummary();
            return $this->query_result;
        }

        $this->SetErrCode();
        if (!$this->show_errors) {
            $this->WriteError($this->GetErr());
        }

        return false;
    }
final function Query($qry)
    {
        $GLOBALS['qry_count']++;
        $GLOBALS['qry'].=$GLOBALS['qry_count'].':'.$qry."\n";

        $this->last_query = $qry;

        $this->query_result = $this->ExecQuery($qry);

        if ($this->query_result) {
            $this->SetQuerySummary();
            return $this->query_result;
        }

        $this->SetErrCode();
        if (!$this->show_errors) {
            $this->WriteError($this->GetErr());
        }

        return false;
    }
final function Query ( $ qry ) { $ GLOBALS [ 'qry_count' ] ++ ; $ GLOBALS [ 'qry' ] .= $ GLOBALS [ 'qry_count' ] . ':' . $ qry . "\n" ; $ this -> last_query = $ qry ; $ this -> query_result = $ this -> ExecQuery ( $ qry ) ; if ( $ this -> query_result ) { $ this -> SetQuerySummary ( ) ; return $ this -> query_result ; } $ this -> SetErrCode ( ) ; if ( ! $ this -> show_errors ) { $ this -> WriteError ( $ this -> GetErr ( ) ) ; } return false ; }
runs query - wrapper for ExecQuery

@param string $qry
@return int
runs query - wrapper for ExecQuery