回答編集履歴
1
ちょうせい
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
try{
|
8
8
|
|
9
|
-
$dsn = 'mysql:host=
|
9
|
+
$dsn = 'mysql:host=localhost; dbname=mydb;charset=utf8;';
|
10
10
|
|
11
11
|
$pdo = new PDO($dsn, $user,$password);
|
12
12
|
|