2

How can I get timestamp when I add data using PHP in MySQL?

Muhammad Muazzam
  • 2,752
  • 6
  • 30
  • 57
mykelens
  • 29
  • 2

1 Answers1

3

You can set Default value for your column is: CURRENT_TIMESTAMP so when new record be added it have get current timestamp on your server by automaticly.

GiapLee
  • 438
  • 2
  • 8