Commit f8668bda9a70a64733af24fd22ff9be78bdc0a28
1 parent
47dd252e
Suppression RPI + capteur
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
site/accesBase.php
@@ -264,7 +264,7 @@ | @@ -264,7 +264,7 @@ | ||
264 | } | 264 | } |
265 | $db = connexion(); | 265 | $db = connexion(); |
266 | $query = "DELETE FROM raspberry WHERE ip = '$ip'"; | 266 | $query = "DELETE FROM raspberry WHERE ip = '$ip'"; |
267 | - $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()); |
268 | deconnexion($db); | 268 | deconnexion($db); |
269 | if (pg_affected_rows($result)!=0){ | 269 | if (pg_affected_rows($result)!=0){ |
270 | return True; | 270 | return True; |