Welcome Guest, Not a member yet? Register   Sign In
how to insert a current_timestamp when an update is performed.
#3

[eluser]Otemu[/eluser]
[quote author="jmadsen" date="1340289602"]This would be more easily done on the mysql database side - set a datatype of timestamp, and an attribute of "update with current timestamp", and don't update from the CI side at all[/quote]

You could also just use PHP date and insert it directly, just make sure that the date format is correct compared to the format used in the database and set a default timezone

Here a good topic with a number of solutions


Messages In This Thread
how to insert a current_timestamp when an update is performed. - by El Forum - 06-21-2012, 07:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB