php get current timestamp in mysql format code example
Example 1: php mysql timestamp format
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
Example 2: php get current datetime mysql format
date('Y-m-d H:i:s');
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
date('Y-m-d H:i:s');