mysql insert timestamp value code example
Example 1: how to add timestamp column in mysql
ALTER TABLE `table1` ADD `lastUpdated` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ;
Example 2: php mysql insert timestamp now
$update_query = "UPDATE db.tablename SET insert_time=now() WHERE username='" .$somename . "'";