2

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

Muhammad Muazzam
  • 2,810
  • 6
  • 33
  • 62
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
  • 436
  • 2
  • 8