src/Mysqli.php
protected function query($query, ...$params)
    {
        $saveParams = array_map([$this, 'quote'], $params);

        $baseSql = str_replace('{table}', $this->table, $query);
        $sql = vsprintf($baseSql, $saveParams);

        $ret = $this->server->query($sql);

        if ($ret === false) {
            trigger_error($this->server->error . " $sql", E_USER_NOTICE);
        }

        return $ret;
    }
protected function query($query, ...$params)
    {
        $saveParams = array_map([$this, 'quote'], $params);

        $baseSql = str_replace('{table}', $this->table, $query);
        $sql = vsprintf($baseSql, $saveParams);

        $ret = $this->server->query($sql);

        if ($ret === false) {
            trigger_error($this->server->error . " $sql", E_USER_NOTICE);
        }

        return $ret;
    }
protected function query ( $ query , ... $ params ) { $ saveParams = array_map ( [ $ this , 'quote' ] , $ params ) ; $ baseSql = str_replace ( '{table}' , $ this -> table , $ query ) ; $ sql = vsprintf ( $ baseSql , $ saveParams ) ; $ ret = $ this -> server -> query ( $ sql ) ; if ( $ ret === false ) { trigger_error ( $ this -> server -> error . " $sql" , E_USER_NOTICE ) ; } return $ ret ; }
Query the MySQL server

@param string  $query
@param mixed[] $params
@return \mysqli_result|false
Query the MySQL server