时间:2021-07-01 10:21:17 帮助过:21人阅读
$pdo->exec("INSERT INTO blog(content) VALUES('$_POST['content']'))
这行有问题,试试这样:
$pdo->exec("INSERT INTO blog(content) VALUES(".$_POST['content'].")");
$pdo->exec("INSERT INTO blog (content) VALUES ('$_POST[content]')“)
$pdo->exec("INSERT INTO blog(content) VALUES('$_POST['content']'))
这行有问题,试试这样:
$pdo->exec("INSERT INTO blog(content) VALUES(".$_POST['content'].")");