SELECT * FROM rooms WHERE ‘2019-11-12’ BETWEEN check_in AND check_out OR ‘2019-11-14’ BETWEEN check_in AND check_out AND payment_status=3 AND location=‘India’
How can i convert this sql query to cakephp query ??
Here i want to check certain date present between check_in AND check_out column.
The page @deanoj referenced has examples of between, and and or queries. Try some things; if you still have problems, show us what you’ve got, explain what’s not working about it, and we’ll try to help fix that.