CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$notice_id = $_REQUEST['notice_id'];
$notice_no = $_REQUEST['notice_no'];
$notice_date = $_REQUEST['notice_date'];
$department_id = $_REQUEST['department_id'];
$designation_id = $_REQUEST['designation_id'];
$issued_for = $_REQUEST['issued_for'];
$issued_for_department_id = $_REQUEST['issued_for_department_id'];
$class_id = $_REQUEST['class_id'];
$branch_id = $_REQUEST['branch_id'];
$semester = $_REQUEST['semester'];
$subject = $_REQUEST['subject'];
$notice_content = $_REQUEST['notice_content'];
$validity_date = $_REQUEST['validity_date'];
$notice_status = $_REQUEST['notice_status'];
$file_notice = $_REQUEST['file_notice'];
$approve_status = $_REQUEST['approve_status'];
$modified_on = date("Y-m-d");
$modified_by = $_SESSION['USER_ID'];
$is_active = $_REQUEST['is_active'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE notice SET notice_id = '$notice_id',notice_no ='$notice_no',notice_date ='$notice_date',department_id = '$department_id',issued_for ='$issued_for',issued_for_department_id ='$issued_for_department_id',class_id = '$class_id',branch_id ='$branch_id',semester ='$semester',subject = '$subject',notice_content ='$notice_content',validity_date ='$validity_date',
notice_status ='$notice_status',file_notice='$file_notice',approve_status='$approve_status',modified_on='$modified_on',modified_by='$modified_by',is_active='$is_active' WHERE notice_id = '$host'");
if($newUpdate == TRUE){
echo 'Data updated Successfully';
}else{
echo 'Not updated' ;
}
?>