c=$c->c; $this->DB=$c->db; } function RSumusergroup(){ $this->SetQuery("select * from umusergroup"); } function GetRecord(){ if ($this->result = $this->GetResult()) { $this->UgID = $this->result['UgID']; $this->UgGpID = $this->result['UgGpID']; $this->UgUsID = $this->result['UgUsID']; return 1; }else { return 0; } } function SearchByKey($xKey,$xKey2){ if ($this->SetQuery("select * from umusergroup where UgID= '$xKey' and UgUsID='$xKey2'")){ return 1; }else { return 0; } } //****************** You can add new functions below **********************// } //--End class umusergroup-- ?>