csrtechnew.ohctech.in/delete_activity_csr.php

34 lines
873 B
PHP
Raw Normal View History

2025-04-14 13:28:09 +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 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");
}
}
?>