How can I write the following mysql query in cakephp:
SELECT * FROM table WHERE DATE BETWEEN ‘2008-12-23’ AND ‘2008-12-25’;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using Cake’s ORM, it would look something like this (where Model is the name of your model, usually a singularized version of your table name):
Check here for more details:
http://book.cakephp.org/2.0/en/models/retrieving-your-data.html