Viewing file: EditProject.php (1.21 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); if (session_is_registered("valid_user")) { include("../../../include/FunctionDB.php"); ConnectDB(); $Dif_result = $_POST[Budget] - $_POST[Budget_use]; $sql = " UPDATE foreign_relation_tb SET Project_name='$Project_name',Term='$Term',Budget_Year='$Budget_Year',Objective='$Objective',Target='$Target',Period='$Period',Start_Date='$Start_Date',Budget='$Budget',Budget_use='$Budget_use',Dif_result='$Dif_result',Fund_resource='$Fund_resource',Director='$Director',Join_co='$Join_co',Join_type='$Join_type',Result_oper='$Result_oper' WHERE code ='$code' "; $result = mysql_query($sql) or die("Update Error $sql".mysql_error()); header("Location:EditProjectList.php"); CloseDB(); ?> <?php } else { echo"<body bgcolor=\"#CCCCCC\">"; echo"<meta http-equiv=\"refresh\" content=\"3;URL=../../../logout.php\" target=\"mainFrame\">\n"; echo"<center>"; echo"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>"; echo"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>"; echo"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> ¤Ø³äÁèÁÕÊÔ·¸ìãªé§Ò¹</font>"; echo"</center>"; echo"</body>"; } ?>
|