Ultrawind
中级会员
 
一般会员
UID 67136
精华
0
积分 272
帖子 198
金钱 272 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2005-10-7
状态 离线
|
请教一个关于pdo报错的问题?
<?php try { $sql = "test test"; $this->db->exec($sql); return $this->db->exec($sql); } catch (PDOException $e) { print "Error: " . $e->getMessage() . "<br/>"; die(); } ?> 我是用pdo数据库驱动的,跑上面的程序,sql明显是错误的,为什么pdo不会显示错误信息呢?
我的报错设置display_error是打开的。
|
|