質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
```ここに言語を入力
|
2
2
|
|
3
|
-
<?php
|
4
|
-
|
5
|
-
ini_set('display_errors', 0);
|
3
|
+
<?phpini_set('display_errors', 0);
|
6
4
|
|
7
5
|
|
8
6
|
|
@@ -19,88 +17,6 @@
|
|
19
17
|
|
20
18
|
|
21
19
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
try{
|
26
|
-
|
27
|
-
$pdo = new PDO("mysql:host=localhost;dbname=〇〇;charset=utf8;","root","");
|
28
|
-
|
29
|
-
$pdo ->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
30
|
-
|
31
|
-
$sql = "UPDATE 〇 SET confirm = :confirm WHERE no = :no";
|
32
|
-
|
33
|
-
$stmt_c = $pdo->prepare($sql);
|
34
|
-
|
35
|
-
$stmt_c->bindvalue(':no', $no, PDO::PARAM_STR);
|
36
|
-
|
37
|
-
$stmt_c->bindvalue(':confirm', $confirm, PDO::PARAM_STR);
|
38
|
-
|
39
|
-
$stmt_c ->execute();
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
} catch (Exception $e){
|
44
|
-
|
45
|
-
exit('データベース接続失敗。' . $e ->getMessage());
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
}
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
$where = [];
|
60
|
-
|
61
|
-
if(isset($_POST['site']) && $_POST['site'] != ""){
|
62
|
-
|
63
|
-
$where[] = "( site = '" . $_POST['site']."')";
|
64
|
-
|
65
|
-
$site = $_POST['site'];
|
66
|
-
|
67
|
-
}
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
if(isset($_POST['message']) && $_POST['message'] != ""){
|
72
|
-
|
73
|
-
$where[] = "( message = '" . $_POST['message']."')";
|
74
|
-
|
75
|
-
$message = $_POST['message'];
|
76
|
-
|
77
|
-
}
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
if(isset($_POST['nichi']) && $_POST['nichi'] != ""){
|
82
|
-
|
83
|
-
$where[] = "( nichi = '" . $_POST['nichi']."')";
|
84
|
-
|
85
|
-
$nichi = $_POST['nichi'];
|
86
|
-
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
if(isset($_POST['name']) && $_POST['name'] != ""){
|
92
|
-
|
93
|
-
$where[] = "( name = '" . $_POST['name']."')";
|
94
|
-
|
95
|
-
$name = $_POST['name'];
|
96
|
-
|
97
|
-
}
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
$line = "ORDER BY no DESC";
|
104
20
|
|
105
21
|
|
106
22
|
|
@@ -149,24 +65,6 @@
|
|
149
65
|
?>
|
150
66
|
|
151
67
|
|
152
|
-
|
153
|
-
<!DOCTYPE html>
|
154
|
-
|
155
|
-
<html lang="jp">
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
<head>
|
160
|
-
|
161
|
-
<meta charset="UTF-8">
|
162
|
-
|
163
|
-
<meta name="viewport" content="width=890">
|
164
|
-
|
165
|
-
<link rel="stylesheet" href="1113.css">
|
166
|
-
|
167
|
-
</head>
|
168
|
-
|
169
|
-
<body>
|
170
68
|
|
171
69
|
|
172
70
|
|
@@ -276,10 +174,6 @@
|
|
276
174
|
|
277
175
|
|
278
176
|
|
279
|
-
</body>
|
280
|
-
|
281
|
-
</html>
|
282
|
-
|
283
177
|
```
|
284
178
|
|
285
179
|
|