1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
$bdd = "bdd1";
$host = "serveur1";
$user = "user1";
$pass = "pass1";
try
{
$connexion1 = new PDO('mysql:$host=$host1;dbname='.$bdd1.';charset=utf8', $user1, $pass1);
}
catch (Exception $e)
{
echo ('Erreur : Problème de connexion EC');
}
$bdd = "bdd2";
$host = "serveur1";
$user = "user1";
$pass = "pass1";
try
{
$connexion1 = new PDO('mysql:$host1=$host;dbname='.$bdd2.';charset=utf8', $user1, $pass1);
}
catch (Exception $e)
{
echo ('Erreur : Problème de connexion EC');
} |
Partager