On Jun 6, 9:49 am, hashkash <[EMAIL PROTECTED]> wrote:
> $owners = array('1','2','3')
> $equipment = $this->Equipment->findAll( array('Equipment.owner_id'=>
> $owners) );
> Correct me if im wrong but from what grant Cox has written I construe
> that there are only 3 owners.
mmm k.
> In my case he no of owners keep growing as and when they register.
> The owners are selected from a multiple select option.
<rhetorical>And in what form is that available to you in the
controller. do pr ($this->data['Equipment']['owner']); how does that
var change when you select 1, 2 or n owners in your form.</rhetorical>
> Im not using a findAll() but using a query() because when i used the
> findall()before posting on this group i got a few errors. so im using
> the query().
Well that's one way to avoid being helped. Use findAll and it's simple
use query and you are on your own ;).
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---