Location: PHPKode > projects > TimeSheet4dotProject > ts4dp/timesheet/setReporting.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();
}


$setReportingSQL = 'update users set user_reporting_to = '.$_REQUEST['parent'].' where user_id = '.$_REQUEST['child'] ;
//print $setReportingSQL;
db_exec($setReportingSQL);
$msg =  db_error();
if ($msg)
{
	print "Update Failed";
}
else
{
	print "Update Success";
}

?>
Return current item: TimeSheet4dotProject