Location: PHPKode > projects > Mozart > Mozart-0.0.4/getusername.inc
<?
// query the users database to obtain first and last name of currently viewed user
//
$GetNameSQL = "SELECT last, first FROM contact WHERE contact_id = '$SearchSys'";
$GetName = mysql_query($GetNameSQL);
$getname = mysql_fetch_array($GetName);
$FirstName = $getname["first"];
$LastName  = $getname["last"];
?>
Return current item: Mozart