Commit 47dd252eba8215dafaad20146a36f04a8a5125d9

Authored by grouille
1 parent 5f9195af

Suppression RPI + capteur

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
site/accesBase.php
@@ -262,6 +262,7 @@ @@ -262,6 +262,7 @@
262 { 262 {
263 remove($capteur['nom']); 263 remove($capteur['nom']);
264 } 264 }
  265 + $db = connexion();
265 $query = "DELETE FROM raspberry WHERE ip = '$ip'"; 266 $query = "DELETE FROM raspberry WHERE ip = '$ip'";
266 $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error().$query); 267 $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error().$query);
267 deconnexion($db); 268 deconnexion($db);