![]() |
Sergey Kornilov admin 10/21/2005 |
Hi, $value=$data["datefield"];
$value=now();
|
V
|
vandecan author 10/21/2005 |
Thanks for the answer. |
![]() |
Sergey Kornilov admin 10/21/2005 |
Yes, all changes to files will be lost after project rebuild. |
|
hfg 3/22/2007 |
I am wanting to have the status_date field change automaticly to the current day everytime a record is edited and saved. This is something I used to use in version 3.0 using the method in this posting. I am finding it difficult to apply to version 3.1. |
V
|
Vladimir 3/22/2007 |
Hi, hfg. $values["status_date"] = now(); |
|
hfg 3/22/2007 |
Thanks for the reply but I think I'm still missing something, I added the following code to the events. But when I go to the edit screen the date shown in Status_Date is still the perviously saved date. |
J
|
Jane 3/22/2007 |
Hi, function EditOnLoad() { global $smarty; $smarty->assign("value_status_date",now()); } |
|
hfg 3/23/2007 |
That did the job, thanks |