dbh()->query($sql); $output = array("lesInterventions"=>$reponse->fetchAll(PDO::FETCH_ASSOC)); }catch (Exception $e){ die('Erreur : '.$e->getMessage()); } echo(json_encode($output));