protected function connect() { $this->conn = @mysql_connect(Config::v1_host, Config::v1_db_user, Config::v1_db_pass); if (!$this->conn) { Utils::serverErrorLog("Problem Connecting to MySQL: " . mysql_error()); if (Config::adminEmail) { Utils::sendEmail(Config::adminEmail, "ARIS Server Error", mysql_error()); } } mysql_set_charset('utf8'); }
public function connect() { $this->conn = @mysql_connect(Config::dbHost, Config::dbUser, Config::dbPass); if (!$this->conn) { Utils::serverErrorLog("Problem Connecting to MySQL: " . mysql_error()); if (Config::adminEmail) { Utils::sendEmail(Config::adminEmail, "ARIS Server Error", mysql_error()); } } mysql_select_db(Config::dbSchema); Utils::query("set names utf8"); Utils::query("set charset utf8"); }