Viewing file: EditActivity.php (1.57 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../include/FunctionDB.php"); ConnectDB(); $Dif_result = $_POST[Budget] - $_POST[Budget_use]; $strSQL="UPDATE std_activity_tb SET Activity_name='$Activity_name',Activity_type='$Activity_type',Perform='$Perform',Activity='$Activity',Period='$Period',Budget='$Budget',Budget_use='$Budget_use',Dif_result='$Dif_result',Source='$Source',Target='$Target',Amount='$Amount',Supervisor='$Supervisor',Duty='$Duty',Objective='$Objective',Index_mature='$Index_mature',Affect_class='$Affect_class',Ec41_1='$Ec41_1',Ec41_2='$Ec41_2',Ec41_3='$Ec41_3',Ec41_4='$Ec41_4',Ec41_5='$Ec41_5',Ec41_6='$Ec41_6',Ec41_7='$Ec41_7',Ec41_8='$Ec41_8',Ec41_9='$Ec41_9',Ec41_10='$Ec41_10',Ec41_11='$Ec41_11',Ec42_1='$Ec42_1',Ec42_2='$Ec42_2',Ec42_3='$Ec42_3',Ec42_4='$Ec42_4',Ec42_5='$Ec42_5',Ec42_6='$Ec42_6',Ec42_7='$Ec42_7',Ec42_8='$Ec42_8',Ec42_9='$Ec42_9',Ec42_10='$Ec42_10',Ec42_11='$Ec42_11',Ec42_12='$Ec42_12',Ec42_13='$Ec42_13',Ec42_14='$Ec42_14',Ec42_15='$Ec42_15',Ec43_1='$Ec43_1',Ec43_2='$Ec43_2',Ec43_3='$Ec43_3',Ec43_4='$Ec43_4',Ec43_5='$Ec43_5',Ec43_6='$Ec43_6',Ec43_7='$Ec43_7',Ec43_8='$Ec43_8',Ec43_9='$Ec43_9',Ec43_10='$Ec43_10',Ec44_1='$Ec44_1',Ec44_2='$Ec44_2',Ec44_3='$Ec44_3',Ec44_4='$Ec44_4',Ec44_5='$Ec44_5',Ec44_6='$Ec44_6',Ec44_7='$Ec44_7',Ec44_8='$Ec44_8',Ec44_9='$Ec44_9',Ec44_10='$Ec44_10',Ec44_11='$Ec44_11',Ec44_12='$Ec44_12',Ec44_13='$Ec44_13',Ec44_14='$Ec44_14',Ec44_15='$Ec44_15',Result_oper='$Result_oper' WHERE code='$code' "; $result = mysql_query($strSQL) or die("Update Error $strSQL".mysql_error()); header("Location:EditActivityList.php"); CloseDB(); ?>
|