KN
Size: a a a
KN
KN
V
(I
V
ИЛ
public function saveCommentToDb(): array
{
if (isset($_POST["comment"])) {
$comment = $_POST["comment"];
return Db::getDbh()->query('INSERT INTO comments (date, post) VALUES (now(),
$comment)')->fetchAll();
}
}Warning: PDO::query(): SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "$" LINE 2: $comment) ^R
R
ИЛ
AS
m
ИЛ
AS
AS
ИЛ
AS
ИЛ
А
V
А