24-12-2011, 07:14 PM
Pourquoi ne pas avoir un hash contenant les identifiants de tes bases ?
$databases = array(
"first_database" => array(
"hostname" => "...",
"username" => "...",
"password" => "..."
),
"other_database" => array(
"hostname" => "...",
"username" => "...",
"password" => "..."
)
);