Monday, June 27, 2011

Re: Between conditional question

http://book.cakephp.org/view/1030/Complex-Find-Conditions

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 27 Jun 2011, at 22:43, Michael Gaiser wrote:

So I have been able to find records in my database by supplying a conditional like 'Location.id'=>'4' and it will give me the location record who's id is 4. But I am now trying to deal with dates and it has made the database calls a bit more difficult. How do I tell the find function that I only want dates between Date X & Date Y or only find records that have the desired month, but still of the same year, ie ignore the day data. Thanks in advance.


~Michael

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: