Viewing file: EditResProject.php (3.99 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
";
echo " กรุณาทำการ Login ก่อน ";
echo "";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../include/Function.php" );
require_once( "../include/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "personal_tb";
/** Table --> personal_tb */
$query1 = " SELECT * FROM $myTable1 WHERE Username='$Username' ";
$result1 = $dbObj->execQuery($query1);
$rs1 = $dbObj->fetchArray($result1);
//--- รับค่าจากฟอร์ม
$Project_name = trim( $_POST['Project_name'] );
$Year_res = trim( $_POST['Year_res'] );
$Duty = $_POST['Duty'];
$Duty_else = trim( $_POST['Duty_else'] );
$Apply = htmlspecialchars( trim( $_POST['Apply'] ) );
//--- Table --> 'res_project_tb'
$strSQL1 = " UPDATE res_project_tb SET Project_name='$Project_name' , Year_res='$Year_res' , Duty='$Duty' , Duty_else='$Duty_else' , Apply='$Apply' , date_updated=NOW() WHERE Resp_code='$Resp_code' ";
$result1 = $dbObj->runQuery($strSQL1);
$dbObj->freeresult($result1);
} # else
?>
ข้อมูลทั่วไปบุคลากร - ความรับผิดชอบในโครงการ - แก้ไขข้อมูลความรับผิดชอบในโครงการ
freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|