Ejemplo n.º 1
0
 public function delete($id = null)
 {
     $id = Addresses::check_get_param($id);
     $result = $this->db->exec("DELETE FROM ADDRESS WHERE ADDRESSID=" . $id);
     return $result == 1 ? "OK" : Router::error404("No data with this id found");
 }