回答編集履歴
1
文法ミス $dbhの $user. を $user, に修正
test
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
```PHP
|
56
56
|
|
57
|
-
$dbh = new PDO($dsn,$user
|
57
|
+
$dbh = new PDO($dsn,$user,$password);
|
58
58
|
|
59
59
|
$stmt = $dbh->prepare($sql);
|
60
60
|
|