$op = Db::pdo()->prepare($sql);$result = $op->execute($execute); ← 提示的错误行 var_dump($result); if ($result) { return $op->$resultMode(); }
错误信息:
Fatal error: Uncaught Error: Call to a member function execute() on boolean in xxxxxxxxxx
Error: Call to a member function execute() on boolean in xxxxxxxxx
然后我用$op->errorCode() 得到的是0000,表明也是成功的
errorinfo也获取不到mysql的错误信息,怎么回事呢?
补充:
sql语句是这样的的: 正常是 name = 'qq' , 我将'qq' 改为了 *
问题是,errorinfo也获取不到mysql的错误信息
慕码人8056858