mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
// *****************************
|
||||
// Vorschlag fuer UNR liefern
|
||||
// *****************************
|
||||
|
||||
include('../vilesci/config.inc.php');
|
||||
|
||||
$conn = @pg_pconnect(CONN_STRING))
|
||||
if ($conn) {
|
||||
$sql="select max(unr) as max_unr from tbl_lehrveranstaltung";
|
||||
|
||||
|
||||
|
||||
if(!($erg=pg_exec($conn, $sql_query))) {
|
||||
$this->errormsg=pg_errormessage($conn);
|
||||
return false;
|
||||
}
|
||||
$num_rows=pg_numrows($erg);
|
||||
$result=array();
|
||||
for($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=pg_fetch_object($erg,$i);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
echo 'no connection';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user