/var/www/onesolution.com.hk/support/taskupdate.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php require("checkuser.php"); ?>
<?
$projectid        
$_POST['projectid'];
$taskid            $_POST['taskid'];
$staffid        $_POST['staffid'];
$taskname        htmlspecialchars($_POST['taskname'], ENT_QUOTES);
$taskdesc        htmlspecialchars($_POST['taskdesc'], ENT_QUOTES);
$status            $_POST['status'];

$priority        $_POST['priority'];
$datefr            $_POST['datefr'];
$dateto            $_POST['dateto'];

$updatedby        $_SESSION['userid'];
$updateddate    date("Ymdgis");


include(
"configure.php");


$sql "update PM_TASK_HDR ";
$sql .= "set staffid=$staffid, taskname='$taskname', taskdesc='$taskdesc', status=$status, priority=$priority, datefr='$datefr', dateto='$dateto', updatedby='$updatedby', updateddate='$updateddate' ";
$sql .= "where taskid = $taskid";
echo 
$sql;
$result mysql_query($sql);
if (!
$result) {
    die(
'Invalid query: ' mysql_error());
}

header("Location: tasklist.php?projectid=$projectid");
?>