errorCode() != 0)) { /* 识别错误 */ $error = PDO_ErrorInfo(); return $error[2]; } else { #没错误 return ""; } }