This commit is contained in:
Christian Paminger
2007-06-14 10:59:25 +00:00
parent f806df9cf6
commit c5800aae47
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -1,15 +1,16 @@
<?php
include('../../config.inc.php');
include('../../../include/globals.inc.php');
//include('../../../include/globals.inc.php');
include('../../../include/functions.inc.php');
$uid=USER_UID;
$uid=get_uid();
// Verbindung aufbauen
$conn=pg_pconnect(CONN_STRING) or die ("Unable to connect to SQL-Server");
$sql_query="SET search_path TO campus; SELECT uid, nachname, vorname FROM vw_benutzer WHERE uid LIKE '$uid'";
unset($uid);
//echo $sql_query;
$result=pg_query($conn, $sql_query);
if(!$result)
echo "User not found!";
else