时间:2021-07-01 10:21:17 帮助过:23人阅读
$stmt=$pdo->prepare("insert into ajax (txt) values (:txt)");
$stmt->execute(array(‘:txt' =>$id));
或
$stmt=$pdo->prepare("insert into ajax (txt) values (?)");
$stmt->execute(array($id));
改成这样
prepare("insert into ajax(txt) values(?)");$stmt->execute(array($id));?>