I found it: getAffectedRows(), for anyone who needs it.
Verified it works.

On Dec 15, 5:50 pm, steve <[EMAIL PROTECTED]> wrote:
> Hi, hope that someone has used this check for affected rows already
> and knows how it works in cakePHP.
>
> I'm simply needing to test for affected rows ( i.e.
> mysql_affected_rows() ).
>
> I did a search in the cakephp API for it and found lastAffected.
>
> If I run an "Update" query on my Post model, and want to get the
> number of rows affected,  is it $this->Post->lastAffected() ?   This
> didn't seem to work. Don't have the error message at the time.
>
> Steve

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