質問編集履歴
1
画像とコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,8 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
index.php
|
24
|
+
|
23
25
|
```php
|
24
26
|
|
25
27
|
<?php
|
@@ -241,3 +243,27 @@
|
|
241
243
|
|
242
244
|
|
243
245
|
```
|
246
|
+
|
247
|
+
dbconnect.php
|
248
|
+
|
249
|
+
```php
|
250
|
+
|
251
|
+
<?php
|
252
|
+
|
253
|
+
try {
|
254
|
+
|
255
|
+
$db = new PDO('mysql:dbname=mini_bbs;host=localhost;charset=utf8','root', 'root');
|
256
|
+
|
257
|
+
} catch (PDOException $e) {
|
258
|
+
|
259
|
+
echo 'DB接続エラー: ' . $e->getMessage();
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
?>
|
264
|
+
|
265
|
+
```
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
![イメージ説明](e63226a29ca1e0e512f1837e10d7fbbb.png)
|