14 lines
376 B
PHP
14 lines
376 B
PHP
<?php
|
|
include('includes/config/config.php');
|
|
$query="";
|
|
if (!empty($_REQUEST['flex_unit_id'])) {
|
|
$query = "DELETE FROM activity_master WHERE activity_id = '".$_REQUEST['flex_unit_id']."'";
|
|
|
|
if (!$result = @mysqli_query($conn, $query)) {
|
|
exit(mysqli_error($conn));
|
|
echo json_encode("FAILURE");
|
|
} else {
|
|
echo json_encode("SUCCESS");
|
|
}
|
|
}
|