Connect(); } function Connect(){ global $_Config_REGDBHost, $_Config_REGDBUser, $_Config_REGDBPass, $_Config_REGDBName; //$this->c = mysql_connect($this->h, $this->u, $this->p); $this->c = mysql_connect($_Config_REGDBHost, $_Config_REGDBUser, $_Config_REGDBPass); if (!$this->c) { die('Could not connect database :: ' . mysql_error()); } //mysql_select_db($this->db, $this->c); mysql_select_db($_Config_REGDBName, $this->c); mysql_query("SET NAMES 'tis620'"); } function Disconnect(){ return mysql_close(); } function Execute($query){ return mysql_query($query,$this->c); } function BeginTrans(){ $this->Execute("SET AUTOCOMMIT=0"); } function CommitTrans(){ $this->Execute("commit"); $this->Execute("SET AUTOCOMMIT=1"); } function RollbackTrans(){ $this->Execute("rollback"); $this->Execute("SET AUTOCOMMIT=1"); } } //////////////////////////////////////////// ?>