Question
Searching on date ranges
I'm trying to create a booking system where the user enters
an arrival date and a departure date. They then see a list of
available room types based on the arrivalDate and the departDate.
I'm having trouble on the Where clause.
I have used the following
<cfquery name="qGetRooms" datasource="booking" username="root" password="IreneB">
SELECT book_id, arrival_date, depart_date, booking_date
FROM booking
WHERE booking.arrival_date= '#form.arrivalDate#' and depart_date = '#form.departDate#'
</cfquery>
However, when I try to output this to a table, it's just blank
I have used the following
<cfquery name="qGetRooms" datasource="booking" username="root" password="IreneB">
SELECT book_id, arrival_date, depart_date, booking_date
FROM booking
WHERE booking.arrival_date= '#form.arrivalDate#' and depart_date = '#form.departDate#'
</cfquery>
However, when I try to output this to a table, it's just blank