質問編集履歴

1

バージョンを明記

2019/04/18 06:45

投稿

onslaught
onslaught

スコア19

test CHANGED
File without changes
test CHANGED
@@ -16,6 +16,10 @@
16
16
 
17
17
 
18
18
 
19
+ 追記PHP7.2,MySQL5.7
20
+
21
+
22
+
19
23
  ```php
20
24
 
21
25
  **index.php**
@@ -234,6 +238,30 @@
234
238
 
235
239
 
236
240
 
241
+ ```PHP
242
+
243
+ **config.php**
244
+
245
+
246
+
247
+ <?php
248
+
249
+
250
+
251
+ define('DSN', 'mysql:dbname=php_lesson;host=localhost;unix_socket=/tmp/mysql.sock');
252
+
253
+ define('DB_USER', 'root');
254
+
255
+ define('DB_PASSWORD', '');
256
+
257
+
258
+
259
+ ?>
260
+
261
+ ```
262
+
263
+
264
+
237
265
  データベース
238
266
 
239
267
  ![データベース](d037e033d1eb67f227cde615ea0c5fa4.png)