回答編集履歴
1
edit
answer
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
```
|
15
15
|
|
16
|
-
[PDO::lastInsertId](https://www.php.net/manual/ja/pdo.lastinsertid.php)はPDOオブジェクトが
|
16
|
+
[PDO::lastInsertId](https://www.php.net/manual/ja/pdo.lastinsertid.php)はPDOオブジェクトが持っているメソッドです。
|
17
17
|
現時点のコードでPDOオブジェクトを保持しているのは`$dbh`ではないでしょうか。
|
18
18
|
|
19
19
|
|