This commit is contained in:
Christian Paminger
2007-06-11 15:20:17 +00:00
parent e418a0284c
commit fcc220345d
10 changed files with 84 additions and 92 deletions
+15 -24
View File
@@ -6,30 +6,21 @@
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';
$conn = pg_pconnect(CONN_STRING);
if (!$conn)
die('no connection');
$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);
}
?>