I’m using phpMyAdmin and I was wondering if there is a way I can default a column to have the same value as another column?
Scenario
So I’m running a wordpress and I want to give users access to a page for a certain amount of time so I created a trialTime column. I want to default the value of trailTime to the users registrationDate (which is also a column). This way I can start the countdown from when they register but the admin will be able to reset the value of trialTime inside the admin panel if they want to.
If you are using wordpress and want to set certain user field at time of registration, just use *user_register* action hook.