I am new to php.
I have a record in my database, when i change the record and update, the modified date should automatically get insert into database.
what are all the steps i need to take?
Use NOW() in your Update statement
field1 = 'value1'
, field2 = 'value2'
, datefield = NOW()
thank you so much..
I am also agree.Now() will be used in the update query to display the current date and time.It returns the yyyy-mm-dd and also HH:MI:SS.
This topic is now closed. New replies are no longer allowed.