That I did not know...I'll change the names of my fields. I guess it
would still be useful to know how to update fields that aren't in a
form along with the form anyway though.

On Dec 21, 4:06 pm, "Mariano Iglesias" <[EMAIL PROTECTED]>
wrote:
Did you know that if you have a field called created (DATETIME) on that
table CakePHP will automatically populate its value? The same applies for a
field called modified (DATETIME).

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.

BAKE ON!

-----Mensaje original-----
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 21 de Diciembre de 2006 05:55 p.m.
Para: Cake PHP
Asunto: Updating a date field after form submission

I have a form that ties into a table, and in that table is a field
date_created...so when someone submits that form i need to add a
date_created=now() to the sql.


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