ESH/delete_staff_user.php

19 lines
385 B
PHP
Raw Normal View History

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