I have a client with multiple sites (church) and they all have the JEvents component installed. I'm trying to hack a module to pull the latest events from each DB on the same cPanel server.
Here's what i have done: Anywhere there is a SELECT statement, I inserted the following code.
			$host = 'localhost';
			$user = 'xxxxx';
			$password = 'xxxxx';
			$dbase = 'xxxxx';
			$dbprefix = 'jos_';
			$db = new database( $host, $user, $password, $dbase, $dbprefix );
This should create a new database instance. Any ideas on how this could be accomplished?
I thought the above code might work but I must be missing something.
Regards,
Eric
