function DBSelector(){ $dbID=0; $this->_DBa[$dbID]=new DB(); $this->_DBa[$dbID]->displayName='MySQL Data Types DB'; //MySQL database registration $this->_DBa[$dbID]->DBtype=CMySQL; $this->_DBa[$dbID]->host='localhost'; $this->_DBa[$dbID]->db='database_name'; //ALLOW ONLY CERTAIN TABLES LISTED BELOW FOR DATABASE1 OR //COMMENT IT OUT TO ALLOW ALL TABLES //$this->_DBa[$dbID]->tables=array("Table1","Table2","Table3", "Table4"); $this->_DBa[$dbID]->login='yourLogin'; $this->_DBa[$dbID]->pwd='password'; // DATABASE 2 $dbID=1; $this->_DBa[$dbID]=new DB(); $this->_DBa[$dbID]->displayName='PostgreSQL Data Types DB'; $this->_DBa[$dbID]->DBtype=CPostGreSQL; $this->_DBa[$dbID]->host='192.168.1.34'; $this->_DBa[$dbID]->db='databaseName1'; //ALLOW ONLY CERTAIN TABLES LISTED BELOW FOR DATABASE2 OR //COMMENT IT OUT TO ALLOW ALL TABLES //$this->_DBa[$dbID]->tables=array("Table1","Table2","Table3", "Table4"); $this->_DBa[$dbID]->login='yourLogin'; $this->_DBa[$dbID]->pwd='password'; }