使用PDO的预处理语句时总是错误
$stmt->execute(); //返回false
检查绑定值bindValue为正常
$stmt->bindValue(1,'1'); //返回ture
此时可以用PDOStatement::errorInfo()来获取上条句柄的错误再加以分析
使用PDO的预处理语句时总是错误
$stmt->execute(); //返回false
检查绑定值bindValue为正常
$stmt->bindValue(1,'1'); //返回ture
此时可以用PDOStatement::errorInfo()来获取上条句柄的错误再加以分析