I have this database (mysql):
And I have code:
$day = $app->request->post('day');
$startLocation = $app->request->post('startLocation');
$datum = new DateTime();
$startTime = $datum->getTimestamp(); //this line is IMPORTANT
global $user_id;
$db = new DbHandler();
// creating new task
$day_id = $db->createDay($user_id, $day, $startLocation, $startTime); ETC...
but I cant submit that timestamp
data into database in startTime
witch have type timestamp
Why? How to do that?