On 4/3/07, behrangsa <[EMAIL PROTECTED]> wrote:
> When I execute the following code, only one item gets inserted into the
> people table:
>
> for ( $counter = 0; $counter <= 4; $counter += 1) {
>          $this->data['Person']['first_name'] = 'First Name ' . $counter;
>          $this->data['Person']['last_name'] = 'Last Name ' . $counter;
>          $this->data['Person']['age'] = 50 + $counter;
>          $this->Person->save($this->data);
>       }

http://groups.google.com/group/cake-php/search?hl=en&group=cake-php&q=saving+in+loop&qt_g=Search+this+group

Do your homework if you don't want your head to be bitten off ;)

Tarique
-- 
=============================================================
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org
=============================================================

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