質問編集履歴

1

脱字

2018/05/18 03:40

投稿

ryusan_012
ryusan_012

スコア59

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  <head>
20
20
 
21
- <meta charset = "utf-8">
21
+ <meta http-equiv="Content-Type" content="text/html"; charset="UTF-8" />
22
22
 
23
23
  <title>status</title>
24
24
 
@@ -74,7 +74,7 @@
74
74
 
75
75
  $pdo = new PDO ('mysql:host=localhost;dbname=simplefacilityusesystem;charset=utf8', 'maint', '1qaz!QAZ'); //データベース接続
76
76
 
77
- foreach ( $pdo->query ( 'select facility from status left join using facility_number ) as $row ) {
77
+ foreach ( $pdo->query ( 'select facility from status left join using facility_number' ) as $row ) {
78
78
 
79
79
 
80
80
 
@@ -86,15 +86,15 @@
86
86
 
87
87
  echo '<td>', $row ['name'], '</td>'
88
88
 
89
- echo '<td>', $row ['start'], '</td>
89
+ echo '<td>', $row ['start'], '</td>;
90
90
 
91
- echo '<td>', $row ['end'], '</td>
91
+ echo '<td>', $row ['end'], '</td>;
92
92
 
93
- echo '<td>', $row ['purpose'], '</td>
93
+ echo '<td>', $row ['purpose'], '</td>;
94
94
 
95
- echo '<td><input type="submit value="削除" name="flag">', $row [''], '</td>
95
+ echo '<td><input type="submit value="削除" name="flag">', $row [''], '</td>';
96
96
 
97
- echo '<td><input type="hidden name="id" value="<?=$row['id']?>""'
97
+ echo '<td><input type="hidden" name="id" value="<?=$row['id']?>"';
98
98
 
99
99
  echo '</tr>';
100
100
 
@@ -106,9 +106,11 @@
106
106
 
107
107
  if(isset($_POST["flag"])){
108
108
 
109
- $sql="delete from status where "
109
+ $sql="delete from status where ";
110
110
 
111
111
  $sql->execute;
112
+
113
+ }
112
114
 
113
115
 
114
116