File "delete_user.php"
Full Path: C:/wamp64/www/PERSONAL/Personal/delete_user.php
File size: 357 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
include('../connection.php');
$id = $_POST['id'];
$sql = "DELETE FROM `empleados` WHERE id='$id'";
$query = mysqli_query($con,$sql);
if ($query==true) {
$data = array(
'status' => 'success',
);
echo json_encode($data);
}else{
$data = array(
'status' => 'failed',
);
echo json_encode($data);
}