I've gotten a few responses (which I greatly appreciate). It appears
that this is not noobie error after all, There is something wrong with
my setup. No matter how I do it, every time I update a record, two new
blank records are appended. Have you ever seen this before?



On Oct 23, 10:05 pm, Buzzholio <[EMAIL PROTECTED]> wrote:
> Hello! I'm a long time coder (27 years) trying to get a handle on
> Cake. I wrote the following very simple code to update a record. When
> executed, it does update the record but also creates two new records.
> I've tried dozens of variations and still get the same results (using
> the pre-beta release of cake). Please tell me what I am doing wrong.
>
> $this->Member->id = $id;
> $this->data=$this->Member->read();
> $this->data['Member']['bucks']=$this->data['Member']['bucks'] + 1;
> $this->data['Member']['last']=date( 'Y-m-d H:i:s',time() );
> $this->Member->save($this->data['Member']);
>
> Thanks!


--~--~---------~--~----~------------~-------~--~----~
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