updateAll is usually NOT for unsecured user input
its for atomic queries and multiple changes mainly

but if you use it for user input you have to secure your data of
course (manually!)

PS:
all you needed was to add the id to the data array
    this->data['Poscheck']['id'] = $id;
    $save = $this->Poscheck->save($this->data);
that should work, too

On 27 Mai, 09:00, thom <[email protected]> wrote:
> On Fri, May 27, 2011 at 12:03 PM, Dr. Loboto <[email protected]> wrote:
> > If you want to update ID of record you must use saveField() or
> > updateAll() method.
>
> Thankyou for your help, Dr Loboto..
> It works. It's kinda strange because 'The $fields array accepts SQL
> expressions. Literal values should be quoted manually.' :D
>
> But thank you very much. I am now able to update the ID :)
>
> --
> Regards,,,
> mastanto 
> (thom_)http://mynameisthom.tumblr.comhttp://mynameisthom.blogspot.comhttp://www.twitter.com/mastanto_

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to