This is my code :
date_default_timezone_set(\'Europe/Rome\'); $dt2=date("Y-m-d H:i:s"); $query = $connection->prepare("INSERT INTO `sessions` (