This commit is contained in:
Christian Paminger
2007-11-08 17:08:03 +00:00
parent 10d0795325
commit 7dd50a66e2
+17
View File
@@ -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;
}
}
?>