how to insert current date in mysql using php code example
Example 1: mysql insert datetime
-- If you just need to insert the current DateTime: --
INSERT INTO yourtable (`DateTimeFieldName`) VALUES (NOW());
Example 2: php get current datetime mysql format
date('Y-m-d H:i:s');