哪位大神幫忙解決下。/*** 獲取PDO實例* @param void* @return obj PDO實例*/private function getPDO(){try{if (!($this->pdo instanceof PDO)){$this->pdo = new PDO($this->dns, $this->username, $this->password);//在上面這行開始報錯}return $this->pdo;}catch (PDOException $e){Log::fatal(array('PDO:', $this->dns, $this->username, $this->password));}}
添加回答
舉報
0/150
提交
取消