如何从PDO中抽取错误信息?
#$dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );try { $sth = $dbh->prepare('@$%T$!!!'); print_r($sth); print_r($dbh->errorInfo());} catch (PDOException $e) { echo $e->getMessage();}
PDOStatement Object( [queryString] => @$%T$!!!)Array( [0] => 00000 [1] => [2] =>)
人到中年有点甜
慕尼黑的夜晚无繁华
慕田峪4524236