Commit 02445fbbd84a1f0a67a13d47f09a8bff8ed48735

Authored by grouille
1 parent 2093e6c8

Suppression RPI + capteur

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
site/accesBase.php
@@ -260,10 +260,9 @@ @@ -260,10 +260,9 @@
260 $capteurs = pg_fetch_all($result); 260 $capteurs = pg_fetch_all($result);
261 foreach($capteurs as $capteur) 261 foreach($capteurs as $capteur)
262 { 262 {
263 - remove($capteur['nom']); 263 + echo $capteur['nom'];
264 } 264 }
265 $query = "DELETE FROM raspberry WHERE ip = '$ip'"; 265 $query = "DELETE FROM raspberry WHERE ip = '$ip'";
266 - echo $query;  
267 $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error()); 266 $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error());
268 deconnexion($db); 267 deconnexion($db);
269 if (pg_affected_rows($result)!=0){ 268 if (pg_affected_rows($result)!=0){