i have a hotel system with thesw 2 tables
Reservation table
reservation_id pk
Start_Date
End_Date
Customers_Customer_id fk
Rooms_Room_id fk
Rooms table
Room_id pk
type
floor
price
i have this query
to retrieve the available rooms
$sql="SELECT Room_id,type,room_floor,price FROM rooms
LEFT JOIN reservation
ON rooms.Room_id = reservation.Rooms_Room_id
where rooms.type='$_POST[type]'
and Start_Date !='$_POST[from]'
and End_Date !='$_POST[to]'"
so the result is fine but it just give me the rooms in the reservation table i want the rooms in the reservation table but not in the searched date plus the others rooms in the rooms table