awayne96
10-18-2009, 11:50 PM
I have a field that is call added that has a time & date stamp but I also have a updated field aswell that only has data entered once the data has been updated.
I am trying to have the search results either show the added time&date stamp but each time you update it have a new date entered into that field of the database... Of can I use the updated field and have data entered into that field when it is originally posted to the database?
I'm thinking I can solve this by changing the attributes for the added field to "on update current_timestamp" and each time the data is updated it would have new date & time entered into the added field? Am I right about what I am thinking or do I need to add code to my modify page to update with new time & date info to either field?
Thanks for your help.
I am trying to have the search results either show the added time&date stamp but each time you update it have a new date entered into that field of the database... Of can I use the updated field and have data entered into that field when it is originally posted to the database?
I'm thinking I can solve this by changing the attributes for the added field to "on update current_timestamp" and each time the data is updated it would have new date & time entered into the added field? Am I right about what I am thinking or do I need to add code to my modify page to update with new time & date info to either field?
Thanks for your help.