I need to select just the available rooms in hotel reservation system
Here's my query
echo $str = $_POST['start'];
echo $en = $_POST['end'];
$sql = "SELECT *
FROM chambre
WHERE id NOT IN (SELECT id_chambre
FROM reservation_client
where start < $en
or end >=$str)";
But the query gives me the rooms that are not in table reservation_client
not the rooms available between $str
and $en
date
or
for date range – hs-dev2 MR