diff --git a/gypsy/hoteldetails.php b/gypsy/hoteldetails.php index e925a7f..5140375 100644 --- a/gypsy/hoteldetails.php +++ b/gypsy/hoteldetails.php @@ -7,6 +7,62 @@ } /*$username = $_SESSION['user'];*/ +if (isset($_GET['destination'])) { + $hname = $_GET['destination']; + $destination = $_GET['destination']; + +} + + +// Simulated flight data array +$sqlht = "SELECT * FROM hotel WHERE name = '$hname'"; +$resultht = $conn->query($sqlht); + +// Check if the query was successful +if ($resultht) { + // Fetch the rows from the result set + while ($rowht = mysqli_fetch_assoc($resultht)) { + // Access the flight data using column names + $nameht = $rowht['name']; + $ratinght = $rowht['rating']; + $locationht = $rowht['location']; + $priceht = $rowht['price']; + $roomtype = $rowht['roomtype']; + $resroom = $rowht['reserve']; + $free = $rowht['free']; + } + + +} else { + // Handle the case when the query fails + echo "Error executing query: " . mysqli_error($conn); +} + + +// Simulated flight data array +$sqlhr = "SELECT * FROM hotelroom"; +$resulthr = $conn->query($sqlhr); +$count=0; +$namer = array(); +$size = array(); +$sleep = array(); +$bed = array(); +// Check if the query was successful +if ($resulthr) { + // Fetch the rows from the result set + while ($rowhr = mysqli_fetch_assoc($resulthr)) { + // Access the flight data using column names + $namer[$count] = $rowhr['name']; + $size[$count] = $rowhr['size']; + $sleep[$count] = $rowhr['sleep']; + $bed[$count] = $rowhr['bed']; + $count++; + } + +} else { + // Handle the case when the query fails + echo "Error executing query: " . mysqli_error($conn); +} include 'header.php'; include 'func.php'; include 'functions.php'; @@ -395,9 +451,9 @@
-
Cox's Bazar 21.3 km from center
+ ++
21.3 km from center
118 reviews
+reviews
24 sq m
-Sleeps 2
-Free WiFi
-2 Twin Beds
-Reserve now, pay later
USD 417 total
- includes taxes & feesWe have 1 left
-
Price details - - Reserve -
-32 sq m
-Sleeps 2
-Free WiFi
-2 Twin Beds
-Reserve now, pay later
USD 417 total
- includes taxes & feesWe have 1 left
-
Price details - - Reserve -
-65 sq m
-Sleeps 4
-Free WiFi
-2 Twin Beds
-Reserve now, pay later
USD 417 total
- includes taxes & feesWe have 1 left
-
Price details - - Reserve -
-27 sq m
-Sleeps 2
-Free WiFi
-2 Twin Beds
-Reserve now, pay later
USD 417 total
- includes taxes & feesWe have 2 left
-
Price details - - Reserve -
-29 sq m
-Sleeps 2
-Free WiFi
-2 Twin Beds
-Reserve now, pay later
USD 417 total
- includes taxes & feesWe have 3 left
-
Price details - - Reserve -
-45 sq m
-Sleeps 2
-Free WiFi
-2 Twin Beds
-Reserve now, pay later
USD 417 total
- includes taxes & feesWe have 3 left
+ Reserve
+
Price details - - Reserve -
24 sq m
-Sleeps 2
-Free WiFi
-2 Twin Beds
-Reserve now, pay later
USD 417 total
- includes taxes & feesWe have 3 left
-
Price details - Reserve -
-Start planning your trip by searching for the best flight options.
-