public function query($sql) { if ($this->_mysqli->connect_errno) { return false; } $this->_result = $this->_mysqli->query($sql); if ($this->_result) { return true; } return false; }