$conditions = array("OR"=>array("id"=>"5","name"=>"abc"));
$this->Post->find('all', array('conditions' => $conditions));might be it would be help u something if the condition goes more then put it on the another array I mean to say that using multiple array with the AND condition operator. On May 19, 6:06 am, Narendra Padala <[email protected]> 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 sitehttp://cakeqs.organd 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 [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
