ESH/delete_csr.php

24 lines
611 B
PHP
Raw Permalink Normal View History

2024-10-23 18:28:06 +05:30
<?php
include('includes/config/config.php');
include ('includes/functions.php');
include ('log_entry.php');
$query="";
if(!empty($_REQUEST['flex_csr_id'])){
$query = "DELETE from csr_program where csr_id = '".$_REQUEST['flex_csr_id']."'";
error_log($query);
$queryQ = "DELETE from participate_csr_program where csr_id = '".$_REQUEST['flex_csr_id']."'";
error_log($queryQ);
// error_log($query);
if (!$result = @mysqli_query($conn,$query)) {
exit(mysqli_error($conn));
echo json_encode("FAILURE");
}else{
$resultQ = @mysqli_query($conn,$queryQ);
echo json_encode("SUCCESS");
}
}
?>