From 7dd50a66e22bd3775cc4dbc6f08a2151ec039156 Mon Sep 17 00:00:00 2001 From: Christian Paminger Date: Thu, 8 Nov 2007 17:08:03 +0000 Subject: [PATCH] --- include/adresse.class.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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