CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$syllabus_topic_id = $_REQUEST['syllabus_topic_id'];
$syllabus_id = $_REQUEST['syllabus_id'];
$topic = $_REQUEST['topic'];
$topic_hour = $_REQUEST['topic_hour'];
$is_active = $_REQUEST['is_active'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE syllabus_topic SET syllabus_topic_id = '$syllabus_topic_id',syllabus_id ='$syllabus_id',topic ='$topic',
topic_hour ='$topic_hour',is_active='$is_active' WHERE syllabus_topic_id = '$host'");
if($newUpdate == TRUE){
echo 'Data updated Successfully';
}else{
echo 'Not updated' ;
}
?>