Commit 2093e6c899ccf89012b88dac5ffa2e4142937935
1 parent
066421f4
Suppression RPI + capteur
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
site/accesBase.php
@@ -263,6 +263,7 @@ | @@ -263,6 +263,7 @@ | ||
263 | remove($capteur['nom']); | 263 | remove($capteur['nom']); |
264 | } | 264 | } |
265 | $query = "DELETE FROM raspberry WHERE ip = '$ip'"; | 265 | $query = "DELETE FROM raspberry WHERE ip = '$ip'"; |
266 | + echo $query; | ||
266 | $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error()); | 267 | $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error()); |
267 | deconnexion($db); | 268 | deconnexion($db); |
268 | if (pg_affected_rows($result)!=0){ | 269 | if (pg_affected_rows($result)!=0){ |