public function close() { if ($this->_linkID) { mysql_close($this->_linkID); } $this->_linkID = null; }
function __destruct() { if ($this->db) { $this->db->close(); } }