SELECT * FROM
tbl_booking
WHERE ‘2023-10-27 13:00:00’ between
startDate and endDate
I need to write the query in code igniter how it can be done
SELECT * FROM
tbl_booking
WHERE ‘2023-10-27 13:00:00’ between
startDate and endDate
I need to write the query in code igniter how it can be done
2
Answers
You can do it like this
you can customize the where just by:
And if you prefer, you can do the escape way too:
here is an online example of the query.