Viewing file: EditTraining.php (4.08 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" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "training_tb";
$myTable2PK = "Training_code";
/** Table --> personal_tb */
$query1 = " SELECT * FROM $myTable1 WHERE Username='$Username' ";
$result1 = $dbObj->execQuery($query1);
$rs1 = $dbObj->fetchArray($result1);
$Teacher_code = $rs1['Teacher_code'];
//$Period_code = $_POST['Period_code'];
/** Table --> training_tb */
$query = " UPDATE $myTable2 SET Training_name='$Training_name', Period_code='$Period_code', Training_type='$Training_type', Training_std='$Training_std',Level='$Level', Major='$Major', Year_std='$Year_std', Place='$Place', Place_des='$Place_des', Date_start='$Date_start' , Date_finish='$Date_finish' , CNEU='$CNEU' , Total_hour='$Total_hour' , Fund='$Fund' , Fund_resource='$Fund_resource' , Organiz='$Organiz' , Apply='$Apply', date_updated=NOW() WHERE $myTable2PK='$Training_code' ";
$result = $dbObj->runQuery($query);
$dbObj->freeresult($result1);
} # else
?>
ข้อมูลทั่วไปบุคลากร - ข้อมูลการพัฒนาบุคลากร - แก้ไขข้อมูลประวัติการพัฒนาตนเอง
freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?> bool(false)
|