Viewing file: Edit.php (1.38 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../../include/FunctionDB.php"); ConnectDB(); //code Student_id Year_grad Pass_test Times Past_test Work_addr Work_place Contact_addr Work_status Position Level Depart_name Depart Date_w1 Date_w11 Date_w2 Date_w22 Date_w3 Date_w33 Work_change Income_m Income_y Status Degree1 Degree2 Award_in Award_out $Status = 1; $sql = "UPDATE std_success_tb SET Student_id='$Student_id',Year_grad='$Year_grad',Pass_test='$Pass_test',Times='$Times',Past_test='$Past_test',Work_addr='$Work_addr', Work_place='$Work_place',Contact_addr='$Contact_addr',Work_status='$Work_status',Position='$Position',Level='$Level',Depart_name='$Depart_name',Depart='$Depart',Date_w1='$Date_w1',Date_w11='$Date_w11',Date_w2='$Date_w2',Date_w22='$Date_w22',Date_w3='$Date_w3',Date_w33='$Date_w33',Work_change='$Work_change',Income_m='$Income_m',Income_y='$Income_y',Status='$Status',Learn_flag='$Learn_flag',Degree1='$Degree1',Degree2='$Degree2',Award_in='$Award_in',Award_out='$Award_out' WHERE Student_id ='$Student_id' "; $result = mysql_query($sql) or die("Update Error $sql".mysql_error()); echo"<center><font face=\"Tahoma\"size=\"6\" color=\"#FF0000\">Update Complete</font></center>"; echo"<meta http-equiv=\"refresh\" content=\"1;URL=ShowStdSucc.php?Student_id=$Student_id\">"; // header("Location:EditPunishList.php?Student_id=$Student_id"); CloseDB(); ?>
|