Subversion Repository Public Repository

Nextrek

Diff Revisions 253 vs 255 for /Android/SmartCharging/endPoints/LocalRepository.php

Diff revisions: vs.
  @@ -162,6 +162,17 @@
162 162 return null;
163 163 }
164 164 }
165 +
166 + public function deleteImage($id_local, $img) {
167 + $sql = "DELETE FROM immagini_locali WHERE id_locale=".$id_local." AND img='".$img."'";
168 + try {
169 + $this->db->exec($sql);
170 + return 0;
171 + } catch (PDOException $e) {
172 + echo $e->getMessage();
173 + return 1;
174 + }
175 + }
165 176 }
166 177
167 178 ?>