Script de sauvegarde/restauration

This commit is contained in:
noeraphanaud
2022-02-09 10:33:18 +01:00
parent b85cfcdf7e
commit 78b1b1923d
18 changed files with 25526 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
include_once 'include/chargementClasses.php';
try{
$laConnexion = new ConnexionBDD();
$sql = 'SELECT * FROM intervention INNER JOIN arbre ON arbre.id = intervention.idArbre;';
$reponse = $laConnexion->dbh()->query($sql);
$output = array("lesInterventions"=>$reponse->fetchAll(PDO::FETCH_ASSOC));
}catch (Exception $e){
die('Erreur : '.$e->getMessage());
}
echo(json_encode($output));