Location: PHPKode > projects > TimeSheet4dotProject > ts4dp/timesheet/saveTask.php
<?php
require_once('session.php');
require_once('global4app.php');

//echo $_POST['taskDate'] . "00:00:00 - taskDate <br>";
//echo $_POST['hours']. " - hours <br>";
//echo $_POST['ttitle']. " - title <br>";
//echo $_POST['desc']. " - desc <br>";
//echo $_POST['form1Values']. " - form1values <br>";

$saveTask_query = "insert into task_log (task_log_task, task_log_name, task_log_description,task_log_creator, task_log_date,task_log_hours ) values ('".$_POST['form1Values']."','".$_POST['ttitle']."','".$_POST['desc']."','".$_SESSION['uid']."','".$_POST['taskDate']." 00:00:00','".$_POST['hours']."')";
//echo $saveTask_query . "<hr>";
db_exec($saveTask_query);
$result = db_insert_id();
if ($result >= 1)
echo "<center> Task saved successfully :) </center>";
else
echo "<center> Failed to save the task, Try later :( </center>";
?>
Return current item: TimeSheet4dotProject