Jump to content

Set default value of one field to the initial value of another


BarneyJoe

Recommended Posts

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.

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.