<?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'];
$room_id = $_GET['roomid'];
$room_status = $_GET['roomstatus'];

mysqli_query($conn, "UPDATE hotel_room_type SET active = '$room_status' WHERE room_type_id = '$room_id' ");

header("Location: ../../manage-hotel.php?hotelid=".$hotel_id."&hotelname=".$hotel_name."&tabhotel=roomies&hotelmsn=a".$room_status."&tab=2");
?>