| Server IP : 104.21.80.248 / Your IP : 162.159.115.41 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/myschool/triamudom/check/id-plan/ |
Upload File : |
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php');
include ($path.'include/class_display.php');
$CLASS['db'] = new db();
$CLASS['db']->connect();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$date_day = date("Y-m-d").' '.date("H:i:s");
$tb_result_performance1 = $_REQUEST['tb_result_performance1'];
$tb_result_performance2 = $_REQUEST['tb_result_performance2'];
$tb_result_performance3 = $_REQUEST['tb_result_performance3'];
$tb_result_performance4 = $_REQUEST['tb_result_performance4'];
$tb_result_performance5 = $_REQUEST['tb_result_performance5'];
$sql_delete = $db->query("DELETE FROM tb_result_performance WHERE tb_teacher_id = '".$_SESSION['sessionuser_id']."' ");
$sql_update = $db->query("INSERT INTO tb_result_performance(tb_teacher_id,
tb_result_performance1,
tb_result_performance2,
tb_result_performance3,
tb_result_performance4,
tb_result_performance5,
tb_result_performance_date)
VALUES ('".$_SESSION['sessionuser_id']."',
'".$tb_result_performance1."',
'".$tb_result_performance2."',
'".$tb_result_performance3."',
'".$tb_result_performance4."',
'".$tb_result_performance5."',
'".$date_day."')");
print "
<script language='javascript'>
alert('Update !!!');
window.location.href='display_main.php';
</script>
";
?>