<?php
include 'config.php';
$del = $_REQUEST['id'];
$array = array();
if($del != ""){
$query = "DELETE FROM sp_exam_links WHERE id='$del'";
$sql=$db->prepare($query);
if($sql->execute()){
$array = array('status'=>1, 'msg'=>"Exam link is Successfully Deleted. ");
} else {
$array = array('status'=>0, 'msg'=>"Exam link is not Deleted.");
}
} else {
$array = array('status'=>0, 'msg'=>"Delete ID is not Existed");
}
echo json_encode($array);
?>