質問編集履歴
1
dbconnectを載せました
title
CHANGED
File without changes
|
body
CHANGED
@@ -108,4 +108,13 @@
|
|
108
108
|
</div>
|
109
109
|
</body>
|
110
110
|
</html>
|
111
|
+
```
|
112
|
+
```
|
113
|
+
<?php
|
114
|
+
try{
|
115
|
+
$db=new PDO('mysql:dbname=mini_bbs;host=localhost:8889;charset=utf8','root','root');
|
116
|
+
}catch(PDOException $e){
|
117
|
+
print('DBエラー'.$e->getMessage());
|
118
|
+
}
|
119
|
+
?>
|
111
120
|
```
|