Just out of curiosity...have you tried running that same SQL query for
the same ID outside of Cake?

Perhaps it's returning more than one record. if so, you might try
adding a limit condition of "1" to your find statement.

On Jan 4, 7:49 pm, skoggins <[EMAIL PROTECTED]> wrote:
> Yeah sorry, typo.  I fixed that and now am back to the original
> problem.  It updates the record but also saves 3 blank records.  Could
> this be because there are frames on the page?
>
> $this->Account->Note->Sentmessage->AllowedView->recursive = -1;
> $conditions = "AllowedView.note_id = '$id' AND AllowedView.user_id =
> '$user_id'";
> $myallowedview = $this->Account->Note->AllowedView->find($conditions);
> $date = date("Y-m-d H:i:s", time()); //need to find current date
> $this->Account->Note->AllowedView->id = $myallowedview['AllowedView']
> ['id'];
> $this->Account->Note->AllowedView->saveField("date_viewed", $date);

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

Reply via email to