CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$subject_id = $_REQUEST['subject_id'];
$subject_code = $_REQUEST['subject_code'];
$subject_name = $_REQUEST['subject_name'];
$syllabusid = $_REQUEST['syllabusid'];
$syllabus_year = $_REQUEST['syllabus_year'];
$modified_on = date('Y-m-d');
$modified_by = $_REQUEST ['modified_by'];
$is_active = $_REQUEST['is_active'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE subject SET subject_id = '$subject_id',subject_code ='$subject_code',subject_name ='$subject_name',syllabusid='$syllabusid',syllabus_year='$syllabus_year',
created_on ='$created_on',created_by='$created_by',modified_on='$modified_on',modified_on='$modified_on',is_active='$is_active' WHERE subject_id = '$host'");
if($newUpdate == TRUE){
echo 'Data updated Successfully';
}else{
echo 'Not updated' ;
}
?>