here is the code i want to search but not inactive ones i have this code so
far it wont work 



        function search($item = null) { 
                 $item = $this->params['url']['q']; 
        $recipes = $this->Recipe->find('all', array('conditions' => array( 
'OR' =>array( 
 'Recipe.name LIKE' => '%' . $item . '%', 
 'Recipe.seasonal LIKE' => '%' . $item . '%', 
 'Recipe.ingredients  LIKE' => '%' . $item . '%')), 
 'AND' => array( 
 array( 
 'OR'=>array( 
 'Recipe.active' =>'1'), 
 'NOT'=>array( 
 'Recipe.active'=> array('0')), 
    'order' => 'Recipe.name', 
    'recursive' => 1, 
                          
                                                
)))); 
-- 
View this message in context: 
http://n2.nabble.com/can-sombody-help-me-here-plz-tp2311359p2311359.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to