refactor Tab Contact: backend

This commit is contained in:
ma0068
2024-05-29 12:34:20 +02:00
parent 0c8d4d830f
commit 5d8df75e86
5 changed files with 119 additions and 812 deletions
@@ -19,4 +19,13 @@ class Gemeinde_model extends DB_Model
return $this->loadWhere(array("plz" => $plz));
}
public function checkLocation($plz, $gemeinde, $ort)
{
$this->db->where('ortschaftsname', $ort);
$this->db->where('name', $gemeinde);
$this->db->where('plz', $plz);
return (boolean)$this->db->count_all_results($this->dbTable);
}
}