H
|
hugolesme 8/13/2007 |
This is a example how to update the Id and login of user (timestamp) time e date, host and address I'm trying to update the timestamp for a record, ie. everytime it's modified, the current time is added/updated. My fields are: tablea: table name last_update: timestamp event: before record update global $conn; $strSQLInsert = "update tablea set last_update = now() where IDFIELD = '".$values["IDFIELD"]."'"; db_exec($strSQLInsert,$conn); return true; Do I need to set the properties for update_table with custom code of now()? - I've tried that too, without success. Not sure where I'm going wrong on this one. |