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

$deleteTask = 'delete from task_log where task_log_id = '.$_REQUEST['task_id'];
// print $updateTask;
db_exec($deleteTask);
$msg =  db_error();
if ($msg)
{
	print "Delete Failed";
}
else
{
	print "Deleted";
}
?>
Return current item: TimeSheet4dotProject