Script de sauvegarde/restauration
This commit is contained in:
19
script/sauvegarde/php43/ONF/getLesInterventions.php
Normal file
19
script/sauvegarde/php43/ONF/getLesInterventions.php
Normal 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));
|
Reference in New Issue
Block a user