[b]Script[/b]
Zie http://plaatscode.be/138864/


[b]Voorbeeld[/b]
[code=php]
<?php

/* Dit bestand zou bijvoorbeeld mysql.connect.php kunnen zijn */
$db = new DatabaseManagement;
$db->createConnection('localhost', 'user', 'password', 'database1', 'db_connectie_1'); // host, user, password, databasenaam, identifier
$db->createConnection('localhost', 'user', 'password', 'database2', 'db_connectie_2');
$db->createConnection('remote_host', 'user', 'password', 'database3', 'db_connectie_3');

/* En dit dan script.php */
require_once 'mysql.connect.php';
mysql_query('SELECT x FROM tabel', $db->getConnection('db_connectie_1'));
mysql_query('SELECT y FROM tabel', $db->getConnection('db_connectie_2'));
mysql_query('SELECT z FROM tabel', $db->getConnection('db_connectie_3'));
