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