34 lines
873 B
PHP
34 lines
873 B
PHP
|
|
<?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 csr_plan where plan_id = '".$_REQUEST['flex_csr_id']."'";
|
||
|
|
error_log($queryQ);
|
||
|
|
// error_log($query);
|
||
|
|
if (!$resultQ = @mysqli_query($conn,$queryQ)) {
|
||
|
|
exit(mysqli_error($conn));
|
||
|
|
echo json_encode("FAILURE");
|
||
|
|
}else{
|
||
|
|
|
||
|
|
echo json_encode("SUCCESS");
|
||
|
|
}
|
||
|
|
|
||
|
|
$queryQ = "DELETE from participate_csr_program where csr_project_id = '".$_REQUEST['flex_csr_id']."'";
|
||
|
|
error_log($queryQ);
|
||
|
|
// error_log($query);
|
||
|
|
if (!$resultQ = @mysqli_query($conn,$queryQ)) {
|
||
|
|
exit(mysqli_error($conn));
|
||
|
|
echo json_encode("FAILURE");
|
||
|
|
}else{
|
||
|
|
|
||
|
|
echo json_encode("SUCCESS");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|