Viewing file: addDataUp.php (2.15 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!--<meta charset='tis-620'>-->
<?php
include_once("classes/Crud.php");
$crud = new Crud();
$strDate = explode("/", $_POST['proDate']);
$proDate=($strDate[2]-543)."-".$strDate[1]."-".$strDate[0]." ".date("H:i:s");
$term=$_POST['term'];
$academic_year=$_POST['academic_year'];
$name=$_POST['name'];
$round=$_POST['round'];
$amountj=$_POST['amountj'];
$amountnj=$_POST['amountnj'];
$per1=$_POST['per1'];
$per2=$_POST['per2'];
$per3=$_POST['per3'];
$per4=$_POST['per4'];
$per5=$_POST['per5'];
$per6=$_POST['per6'];
$per7=$_POST['per7'];
$per8=$_POST['per8'];
$per9=$_POST['per9'];
$per10=$_POST['per10'];
$per11=$_POST['per11'];
$per12=$_POST['per12'];
$per13=$_POST['per13'];
$per14=$_POST['per14'];
$per15=$_POST['per15'];
$per16=$_POST['per16'];
$per17=$_POST['per17'];
$per18=$_POST['per18'];
$per19=$_POST['per19'];
$per20=$_POST['per20'];
$reason=$_POST['reason'];
$s1=$_POST['s1'];
$s2=$_POST['s2'];
$s3=$_POST['s3'];
$s4=$_POST['s4'];
$s5=$_POST['s5'];
$s6=$_POST['s6'];
$s7=$_POST['s7'];
$s8=$_POST['s8'];
$s9=$_POST['s9'];
$s10=$_POST['s10'];
$s11=$_POST['s11'];
$other=$_POST['other'];
$result=$_POST['result'];
$problem=$_POST['problem'];
$ploblemDetail=$_POST['ploblemDetail'];
$probManage=$_POST['probManage'];
$probSend=$_POST['probSend'];
$userID=$_POST['userID'];
$id =$_POST['id'];
$result = $crud->execute("UPDATE consulting SET proDate='$proDate',term='$term',academic_year='$academic_year',round='$round',amountj='$amountj',amountnj='$amountnj',per1='$per1',per2='$per2',per3='$per3',per4='$per4',per5='$per5',per6='$per6',per7='$per7',per8='$per8',per9='$per9',per10='$per10',per11='$per11',per12='$per12',per13='$per13',per14='$per14',per15='$per15',per16='$per16',per17='$per17',per18='$per18',per19='$per19',per20='$per20',reason='$reason',s1='$s1',s2='$s2',s3='$s3',s4='$s4',s5='$s5',s6='$s6',s7='$s7',s8='$s8',s9='$s9',s10='$s10',s11='$s11',other='$other',result='$result',problem='$problem',ploblemDetail='$ploblemDetail',probManage='$probManage',probSend='$probSend',nameTeacher='$name',userID='$userID' WHERE id='$id' ");
//display success message
?>
<div align="center">
<img src="img/T2.png">
</div>
|