how to insert a current_timestamp when an update is performed. |
[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 |
Welcome Guest, Not a member yet? Register Sign In |