关于为什么会发生这种情况的任何想法?
我的代码看起来非常好......过去半小时左右我一直在看它......
$dept_id = $_POST['dept'];
$id = $_POST['moduleCode'];
$name = $_POST['moduleName'];
$sql = "INSERT INTO ts_module
(id,
name,
dept_id)
VALUES
(:id,
:name,
dept_id)";
$stm = $pdo->prepare( $sql );
$stm->execute( array( ':id' => $id,':name' => $name,':dept_id' => $dept_id ) );
var_dump($stm->errorInfo());