17 lines
377 B
PHP
17 lines
377 B
PHP
|
<?php
|
||
|
include('includes/config/config.php');
|
||
|
$query="";
|
||
|
if(!empty($_REQUEST['flex_city_id'])){
|
||
|
$query = " delete from citys where city_id = '".$_REQUEST['flex_city_id']." ' ";
|
||
|
error_log('city_delet'.$query);
|
||
|
if (!$result = @mysqli_query($conn,$query)) {
|
||
|
|
||
|
exit(mysqli_error($conn));
|
||
|
echo json_encode("FAILURE");
|
||
|
}else{
|
||
|
echo json_encode("SUCCESS");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|