Do it in the controller.

On Jan 14, 10:39 am, "[email protected]"
<[email protected]> wrote:
> I have a cake view called process_members.thtml.
> In the view I have setup some filtering and check boxes. If one of the
> check boxes is marked I want to write the current date to a field in
> the database.
>
> So I start Iterating through the database looking at records and so I
> may be writing to more than one record during this process...
>
> for ()
> {
>    if ($chkMark=='1')
>    {
>       // Mark selected months
>       if($chkMonth1=='on')
>          $subscription['Subscription']['month1_mailinginfo_sent']=date
> ('Y-m-d');
>    }
>
>    //Then the field is displayed:
>    <td><? echo $subscription['Subscription']
> ['month1_mailinginfo_sent']; ?></td>
>    //The date shows up here but when I go look at the database it has
> not been written to...
>
> //end for
>
> }
>
> How can I get this date written to the database?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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