我正在尝试准备好的语句来向我的表发送数据。但它给了我错误。我做错了吗?我在这里做错了什么?
错误:SQLSTATE [HY093]:参数号无效:绑定数 变量与令牌数量不匹配
我的代码在
之下 $stmt = $conn->prepare("INSERT INTO mystic_male (id, Name, M1, M2, M3, M4, M5, M6, M7, M8, M9, Time)
VALUES (:id, :Name, :M1, :M2, :M3, :M4, :M5, :M6, :M7, :M8, :M9, CURRENT_TIMESTAMP)");
$stmt->bindParam(':id', $id);
$stmt->bindParam(':Name', $Name);
$stmt->bindParam(':M1', $M1);
$stmt->bindParam(':M1', $M2);
$stmt->bindParam(':M1', $M3);
$stmt->bindParam(':M1', $M4);
$stmt->bindParam(':M1', $M5);
$stmt->bindParam(':M1', $M6);
$stmt->bindParam(':M1', $M7);
$stmt->bindParam(':M1', $M8);
$stmt->bindParam(':M1', $M9);
// insert a row
$id = "";
$Name = "$ps0";
$M1 = "$ps1";
$M2 = "$ps2";
$M3 = "$ps3";
$M4 = "$ps4";
$M5 = "$ps5";
$M6 = "$ps6";
$M7 = "$ps7";
$M8 = "$ps8";
$M9 = "$ps9";
$stmt->execute();