How would I go about adding the current date into the database (MySQL) when a user registers? I know I would need to add a row in the database (Join_date or something), what would I set that to when creating that row? timestamp? varchar?
I want to make it so when the user submits the registration form it adds the current date to the join date row.
Any help would be greatly appreciated.
Thanks.
Suppose structure is
Then use below query
Hope this helps you…