Initial Commit
This commit is contained in:
14
indexes/seller/deleteHotel.php
Normal file
14
indexes/seller/deleteHotel.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
include "../ConnectDB.php";
|
||||
$id = $_POST['restaurantId'];
|
||||
$start=microtime(true);
|
||||
$sql = "DELETE FROM hotel WHERE hotel_id = '$id'";
|
||||
$result = mysqli_query($conn, $sql);
|
||||
$end = microtime(true);
|
||||
$execution_time = $end - $start;
|
||||
if ($result) {
|
||||
echo json_encode(['status' => 'success', 'time' => $execution_time]);
|
||||
} else {
|
||||
echo json_encode(['status' => 'error', 'message' => mysqli_error($conn)]);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user