diff --git a/include/adresse.class.php b/include/adresse.class.php index 990815176..c78bb6414 100644 --- a/include/adresse.class.php +++ b/include/adresse.class.php @@ -400,5 +400,22 @@ class adresse return false; } } + + // ******************************************************** + // * Datenbank-Check + // * @param $adresse_id ID die geloescht werden soll + // * @return true wenn ok, false im Fehlerfall + // ******************************************************** + function check_db($conn) + { + $qry='SELECT adresse_id,person_id,name,strasse,plz,ort,gemeinde,nation,typ,heimatadresse,zustelladresse,firma_id,updateamum,updatevon,insertamum,insertvon + FROM public.tbl_adresse LIMIT 1'; + + if(pg_query($conn,$qry)) + return true; + else + return false; + } + } ?> \ No newline at end of file