BarneyJoe Posted August 10, 2007 Share Posted August 10, 2007 Am just trying to do this, but not getting it. Basically I have a 'Date Entered' field, which defaults to the timestamp of the date a new record is entered. I also have a 'Last Updated' field - so when a new record is added, these would be the same - so would like 'Last Updated' to default to 'Date Entered'. I've tried just entering 'DateAdded' or "DateAdded" as the default in phpMyAdmin, but it doesn't like it. Any ideas? Cheers. Link to comment https://forums.phpfreaks.com/topic/64227-set-default-value-of-one-field-to-the-initial-value-of-another/ Share on other sites More sharing options...
fenway Posted August 20, 2007 Share Posted August 20, 2007 Only way to do this is with a trigger. Link to comment https://forums.phpfreaks.com/topic/64227-set-default-value-of-one-field-to-the-initial-value-of-another/#findComment-329167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.