/** * Non-persistent database connection * * @access private called by the base class * @return resource */ function db_connect() { if ($this->port != '') { $this->hostname .= ':' . $this->port; } //---change---// //return @mysql_connect($this->hostname, $this->username, $this->password, TRUE); $t_saemysql = new SaeMysql(); $t_saemysql->setCharset($this->char_set); $t_saemysql->setAuth($this->username, $this->password); $t_saemysql->setPort($this->port); return $t_saemysql; }