/** * Attempts to reselect database the MySQL database. * * @access public * @return void */ private function __reselectDb() { if ($this->__dbInstance != Database::$__useDb) { if (!mysql_select_db($this->__db['database'], $this->__connection)) { trigger_error('Database::connect(): ' . mysql_error() . '. (' . mysql_errno() . ')', E_USER_ERROR); } else { Database::$__useDb = $this->__dbInstance; } } }