public function query_first($sql) { time_start('query_first ('.$sql.')'); $result = mysqli_query(self::$mysqli[$this->server], trim($sql)); if (!$result) { throw new E_mysql('error query_first', 11); } $this->result = $result; $array = mysqli_fetch_array($this->result, MYSQLI_NUM); $this->stmclose(); time_end(); return $array; }