Anpassung der RDFs an Datenbankklasse

This commit is contained in:
Andreas Österreicher
2009-06-18 15:32:21 +00:00
parent fb1fc4ae57
commit 6241258141
143 changed files with 1239 additions and 13393 deletions
+8 -9
View File
@@ -25,15 +25,12 @@ header("Cache-Control: post-check=0, pre-check=0",false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
// content type setzen
header("Content-type: application/vnd.mozilla.xul+xml");
header("Content-type: application/xhtml+xml");
// xml
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
// DAO
require_once('../vilesci/config.inc.php');
// Datenbank Verbindung
if (!$conn = pg_pconnect(CONN_STRING))
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
require_once('../config/vilesci.config.inc.php');
require_once('../include/basis_db.class.php');
$rdf_url='http://www.technikum-wien.at/zgv';
@@ -60,10 +57,12 @@ if(isset($_GET['optional']) && $_GET['optional']=='true')
</RDF:li>
';
}
$qry = "SET CLIENT_ENCODING to 'UNICODE'; SELECT * FROM bis.tbl_zgv ORDER BY zgv_kurzbz";
if($result = pg_query($conn, $qry))
$qry = 'SELECT * FROM bis.tbl_zgv ORDER BY zgv_kurzbz';
$db = new basis_db();
if($db->db_query($qry))
{
while($row = pg_fetch_object($result))
while($row = $db->db_fetch_object())
{
?>
<RDF:li>