function connectBddBilling() { try { $bdd = new PDO('mysql:host=licences.cty2gpyryemy.eu-west-1.rds.amazonaws.com;dbname=billing', 'licences', '#34eFRT3t'); return $bdd; } catch (Exception $e) { die('connectBddBilling Erreur : ' . $e->getMessage()); } return null; } $bdd = connectBddBilling(); $req = $bdd->prepare("SELECT * FROM t_offer"); $req->execute(array()); $off = $req->fetch(); print_r($off);