This might be of use - it shows how to create OR conditions

http://groups.google.com/group/cake-php/browse_thread/thread/4c05f96a111f7b33/bf00383ffee075f6?lnk=gst&q=findall+%22or%22+%3D%3E+array&rnum=1#bf00383ffee075f6



On Jun 6, 5:00 pm, hashkash <[EMAIL PROTECTED]> wrote:
> Hi!
>     I have a multiple select option where the use can select 1 or more
> owners.
> I need to query the database based on the owners selected.
> There was an article i 
> readhttp://groups.google.com/group/cake-php/browse_thread/thread/e6321043...
> this is like A or B.What I need is A or B or C or..... i.e it depends
> on the number of owners selected.
> For example if he selects owner1 and owner2 and enters 1234 as
> equipment number
> I need to check if
> owner1 has 1234 equipment number
> owner2 has 1234 equipment number i.e owner=owner1 or owner2
> I can get the values from the multiple select option
> array($conditions['owner'] in this case).
> Im able to get it manually and that too only 1 value.
> How do I get all the values and place it in the sql?
> Hoping for some help
> Thanks!
> Kashyap


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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