Viewing file: EditCommittee.php (4.11 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";
$myTable2 = "committee_tb";
$myTable2PK = "code";
/** 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 $myTable2 SET Edu='$Edu',Edu_job='$Edu_job',Tsis='$Tsis',Check_tool='$Check_tool',Scp10='$Scp10',Club_bcnlp='$Club_bcnlp',North_network='$North_network',Else_commit='$Else_commit' ,Houn='$Houn', Filetex='$Filetex' WHERE code='$code'";
$result1 = $dbObj->runQuery($strSQL1);
$dbObj->freeresult($result1);
} # else
?>
ข้อมูลทั่วไปบุคลากร - ความรับผิดชอบในโครงการ - แก้ไขข้อมูลความรับผิดชอบในโครงการ
freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|