<?php
//DB Data
include '../../ASEngine/AS.php';
if(!$login->isLoggedIn())
    header("Location: ../../login.php");
$user = new ASUser(ASSession::get("user_id"));
$userInfo = $user->getInfo();

//basic include files
require_once("../../../db.php");

//variables
$hotel_id = $_GET['hotelid'];
$hotel_name = $_GET['hotelname'];
$amenity_id = $_GET['amenityid'];

mysqli_query($conn, "UPDATE hotel_amenities SET amen_deleted = '1' WHERE amenity_id = '$amenity_id' ");

mysqli_close($conn);

header("Location: ../../manage-hotel.php?hotelid=".$hotel_id."&hotelname=".$hotel_name."&hotelmsn=deletedame&tab=3");
?>