$query = "INSERT INTO `test` (`name_exp`, `data_exp`)
VALUES ( $name_exp, date('Y-m-d'))";
$query = "INSERT INTO `test` (`name_exp`, `data_exp`) VALUES ( ?, now())";
$stmt = $db->prepare($query);
$stmt=>bind_param("s", $name_exp);
$stmt->execute();