/** * Non-persistent database connection * * @access private called by the base class * @return resource */ function db_connect() { // if ($this->port != '') // { // return @mysqli_connect($this->hostname, $this->username, $this->password, $this->database, $this->port); // } // else // { // return @mysqli_connect($this->hostname, $this->username, $this->password, $this->database); // } return ConnectionFactory::Instance()->get_conn($this->hostname, $this->username, $this->password, $this->database); }