Jump to content

[SOLVED] Whats ON UPDATE CURRENT_TIMESTAMP CURRENT_TIMESTAMP?


ted_chou12

Recommended Posts

The column type should be timestamp yes. Then when you update the table you use the CURRENT_TIMESTAMP constant or you can just use PHPs time function which will place a unix timstamp (number of secounds passed since 1 Jan 1970). Then you convert the timestamp into a formatted date by passing the timestamp to the date function as the second parameter.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.