From 02445fbbd84a1f0a67a13d47f09a8bff8ed48735 Mon Sep 17 00:00:00 2001 From: grouille Date: Mon, 20 Apr 2020 21:18:12 +0200 Subject: [PATCH] Suppression RPI + capteur --- site/accesBase.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site/accesBase.php b/site/accesBase.php index ef85a50..6424d13 100644 --- a/site/accesBase.php +++ b/site/accesBase.php @@ -260,10 +260,9 @@ $capteurs = pg_fetch_all($result); foreach($capteurs as $capteur) { - remove($capteur['nom']); + echo $capteur['nom']; } $query = "DELETE FROM raspberry WHERE ip = '$ip'"; - echo $query; $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error()); deconnexion($db); if (pg_affected_rows($result)!=0){ -- libgit2 0.21.2