Location: PHPKode > projects > TimeSheet4dotProject > ts4dp/timesheet/getReporting.php
<?php
require_once('session.php');
require_once('global4app.php');
if ($_SESSION['uid'] == "")
{
	echo '<html><head><meta http-equiv="refresh" content="5; URL=index.php"></head><body>';
	echo '<center>Fatal Error. You haven\'t logged in properly<br/><a href=index.php>'.'Click Here To exit and login again </a> (forwarded in 5 sec.)</center></body></html>';
	exit();
}

$getReportingSQL = 'select user_username from users where user_id = (select user_reporting_to from users where user_id='.$_REQUEST['eid'].')';
// print $getReportingSQL;
$result = db_loadList($getReportingSQL);
foreach($result as $row)
{
	print $row['user_username'];
}
?>
Return current item: TimeSheet4dotProject