http://book.cakephp.org/view/1030/Complex-Find-Conditions
Jeremy Burns jeremybu...@me.com On 19 May 2010, at 14:06, Narendra Padala wrote: > Hi ...All I am new to cake php, I need to write where conditions like this > please any one can help me out > > > WHERE > ((c.start_date >= '2010-05-19' AND c.start_date <= > '2010-06-30') > OR (c.end_date >= '2010-05-19' AND c.end_date <= > '2010-06-30') > OR ('2010-05-19' >= c.start_date AND '2010-05-19' <= > c.end_date) > OR ('2010-06-30' >= c.start_date AND '2010-06-30' <= > c.end_date)) > AND `c`.`status` NOT IN ('request', 'cancelled') > AND `s`.`store_id` = '3' > > Please any one can convert this query in to cakephp please help me > out.......thanks in advance. > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en