Sunday, July 25, 2010

'AND' Condition doesn´t work

i have a categorie which can be shown in the Topnavigation or on the side therfore i use an and condition to check where it goes and its status (online or offline) that be shown or not.

I used it like this but the and condition doesn´t work it have to find all not 0 (1) but it also echo the 0 status.

this is my query i used:

return $this->Kat->find('all',array('conditions'=>array('Kat.kat_pos'=>'head'),'AND'=>array('Kat.kat_online !='=>0)));

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate