質問編集履歴
1
データベースユーザー名・パスワードの削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
require '../password.php';
|
30
30
|
|
31
|
-
$link = mysql_connect('localhost', '
|
31
|
+
$link = mysql_connect('localhost', '(ユーザー名)', '(パスワード)');
|
32
32
|
|
33
33
|
if (!$link) {
|
34
34
|
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
$db_selected = mysql_select_db('
|
41
|
+
$db_selected = mysql_select_db('(ユーザー名)', $link);
|
42
42
|
|
43
43
|
if (!$db_selected){
|
44
44
|
|
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
```error
|
112
112
|
|
113
|
-
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
|
113
|
+
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in (ディレクトリ)insert.php on line 10
|
114
114
|
|
115
115
|
```
|
116
116
|
|
@@ -146,11 +146,11 @@
|
|
146
146
|
|
147
147
|
$host = 'localhost';
|
148
148
|
|
149
|
-
$username = '
|
149
|
+
$username = '(ユーザー名)';
|
150
|
-
|
150
|
+
|
151
|
-
$passwd = '
|
151
|
+
$passwd = '(パスワード)';
|
152
|
-
|
152
|
+
|
153
|
-
$dbname = '
|
153
|
+
$dbname = '(データベース名)';
|
154
154
|
|
155
155
|
|
156
156
|
|
@@ -224,7 +224,7 @@
|
|
224
224
|
|
225
225
|
```
|
226
226
|
|
227
|
-
Warning: mysql_query() expects parameter 1 to be string, object given in /
|
227
|
+
Warning: mysql_query() expects parameter 1 to be string, object given in /insert.php on line 26
|
228
228
|
|
229
229
|
クエリの送信に失敗しました。
|
230
230
|
|