回答編集履歴
1
意図する変数が正しくなかったため修正
answer
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
```
|
20
20
|
|
21
21
|
2.について
|
22
|
-
変数`$sql`は文字列`'INSERT INTO test_drink_stock(drink_id, stock, create_datetime) VALUES(?, ?, NOW())';`です。意図している変数は`$stmt`ではないでしょうか。
|
22
|
+
変数`$sql`は文字列`'INSERT INTO test_drink_stock(drink_id, stock, create_datetime) VALUES(?, ?, NOW())';`です。意図している変数は~~`$stmt`~~`$dbh`ではないでしょうか。
|
23
23
|
|
24
24
|
該当コード:
|
25
25
|
```
|