已采纳回答 / slcheng
太粗心了,仔细看你的代码,catch(\PDOExpcetion $e){ echo $e->getMessage(); }PDOExpcetion 这个单词写错了,应该是PDOException,咋会犯这种低级错误。。 IDE不会提示吗
2016-10-13