CasperSecurity
<?php
session_start();
include '../../connection/connection.php';
$location_id=$_REQUEST['location_id'];
$room = $_REQUEST['room'];
$location_name = $_REQUEST['loc'];
$floor = $_REQUEST['floor'];
$building = $_REQUEST['building'];
$street = $_REQUEST['street'];
$city = $_REQUEST['city'];
$state = $_REQUEST['state'];
$utm_zone= $_REQUEST['utm_zone'];
$utm_side_a= $_REQUEST['utm_side_a'];
$utm_side_a_value= $_REQUEST['utm_side_a_value'];
$utm_side_b= $_REQUEST['utm_side_b'];
$utm_side_b_value= $_REQUEST['utm_side_b_value'];
$latitude = $_REQUEST['latitude'];
$longitude = $_REQUEST['longitude'];
$altitude = $_REQUEST['altitude'];
$db_handle = new DBController();
$newInsertt = $db_handle->runMyDelete(" DELETE FROM location WHERE location_id='$location_id'");
if($newInsertt === TRUE){
echo '{"status": "1",
"message":"update successfully"
}';
}else{
echo '{"status": "0",
"message":"Unccessful"
}';
}
?>