public function CloseConnect() { if ($this->isconnected) { $this->db->Close(); $this->isconnected = false; } }