if (!empty($_POST['message']) && !empty($_POST['user_name']))
{
$name = $_POST['user_name'];
$text = $_POST['message'];
$product = (is_numeric($_POST['product']) && !empty($_POST['product'])) ? $_POST['product']:NULL;
$sql = "INSERT INTO `user277145_jess`.`otzivi` (`id`, `name`, `text`, `product`, `time`) VALUES (NULL, ':name', ':text', :product, ".time().";";
//die($sql);
$resutl = $mysql->query($sql, [':name'=> $name, ':text' => $text, ':product' => $product]);
}
Вот ошибка:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Можете мне пальцем ткнуть где ошибка у меня ?