function open() { $this->db = mysql_pconnect(Config::GetDB("host"), Config::GetDB("username"), Config::GetDB("password")); if ($this->db !== FALSE) { mysql_select_db(Config::GetDB("database"), $this->db); } $this->dm = new DataMining(); }