<?php
    
include("../include/FunctionDB.php");
    
ConnectDB();   
       
$Date_post $_POST[mYear]."-".$_POST[mMonth]."-".$_POST[mDate];
$strSQL="UPDATE history_position_tb SET Teacher_code='$Teacher_code',Position_id='$Position_id',Date_post='$Date_post',Gover_pos='$Gover_pos',Manage_pos='$Manage_pos',Level='$Level',Salary='$Salary',Skill='$Skill',Order_id='$Order_id',Ref_doc='$Ref_doc' WHERE code='$code'";
$result  mysql_query($strSQL) or die("Update Error $strSQL".mysql_error());
    
header("Location:EditHistoryList.php?Teacher_code=$Teacher_code");                
        
CloseDB();
?>