Código PHP:
Ver originalfunction conectar($conexion){
$conn = $conexion;
switch($conn){
case 1:
$server = "localhost";
$user = "root";
$pass = "admin";
$bd = "prueba"
break;
case 2:
$server = "127.0.0.1";
$user = "prueba";
$pass = "adm1n";
$bd = "prueba"
break;
}
}
conectar($_REQUEST[conexion]);