Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Delete for API
require "connection.php";
$data = json_decode(file_get_contents("php://input"));
$id = $data->id;
$query = "CALL st_deleteUser($id)";
if(mysqli_query($con, $query)) {
$response["msg"] = "User deleted response from server was a success ";
} else {
$response["msg"] = "Delete user response from server failed";
echo json_encode($response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.