> findAll(array('Table.categoryt' <> "A" )
This definitely won't work.
The array('Table.categoryt' => 'A') part follows PHP syntax, where =>
denotes a relationship between the key of the array and the value.
To have a condition where you want rows that DON'T match, use
array('Table.categoryt' => 'NOT A'), or '!= A', or '<> A'. One of
those should work (it's late, and I can't be bothered to check which
is correct)
Steve
On Apr 19, 5:57 pm, simonb <[EMAIL PROTECTED]> wrote:
> findAll(array('Table.categoryt' <> "A" )
>
> Try that.
>
> Not so sure about the second problem I use css to set the width
>
> regarding multiple records use this
> <?php echo $form->input("Product.{$i}.id", array('value' =>
> $node['id'], 'label' => false));
> echo $form->input("Product.{$i}.qty"));?>
>
> This is place within a for loop and the $i used as the index.
>
> In the controller you then use either
> foreach($this->data['ProductNode'] as $item) {
> $this->Product->save($item);
> $this->Product->id = null; //this is required otherwise only
> a single row will be inserted.
> }
>
> or save the lot in one go
> $this->Product->saveAll($this->data,false);
>
> If you need any further help please ask me.
>
> On Apr 19, 10:27 am, damo <[EMAIL PROTECTED]> wrote:
>
> > I've looked through the manual/book, but mustn't be looking in the
> > right place.....
>
> > 1) How do I:
>
> > findAll(array('Table.categoryt' != "A" )
>
> > ie, I know how to return results that are equal to "A" by => but what
> > about those not equal. Where do I find comparison operators possible
> > for my controller?
>
> > 2) How can I alter the length of a form input field using form
> > helper? The rows, cols doesn't seem to be suitable for it. This is
> > only for formatting purposes, not for restricting the length of input.
>
> > 3) I'm trying to update multiple records using a single form. Is this
> > the best way of doing it, or has something easier been developed that
> > I cannot find:https://trac.cakephp.org/ticket/3044
>
> > ---
> > Thanks for all the help given by everyone so far, my project has
> > really come together. Give me another 6 months, and I might even be
> > answering these type of questions!!
>
> > Damo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---