mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
Anpassung der RDFs an Datenbankklasse
This commit is contained in:
+8
-9
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user