fhiiqm/test/raumtyp_list.php
changeset 1 6288d5685bff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fhiiqm/test/raumtyp_list.php	Wed Aug 31 14:22:19 2011 +0200
@@ -0,0 +1,18 @@
+<?php
+
+/**
+ * @author Bettina Schwarzer
+ * @copyright 2011
+ */
+
+	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
+	if (!isset($dbc) || !$dbc) $dbc = new dbconnection();
+
+    $sql = "SELECT raumtyp_ID, raumtyp_bez FROM fhiiqm.Raum_Typ ORDER BY 1";
+    if ($result = $dbc->queryObjectArray($sql))
+    {
+        foreach ($result as $row)
+            echo "$row->raumtyp_ID - $row->raumtyp_bez<br />\n";
+    }
+
+?>
\ No newline at end of file