fhiiqm/test/raumtyp_list.php
author Bettina Schwarzer <schwarzer@fhi-berlin.mpg.de>
Fri, 16 Nov 2012 10:40:03 +0100
changeset 32 c2d325791e24
parent 1 6288d5685bff
permissions -rw-r--r--
+ Mitarbeiter - Telefon

<?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";
    }

?>