質問編集履歴

2

修正

2020/11/30 05:36

投稿

ayuayuayu
ayuayuayu

スコア68

test CHANGED
File without changes
test CHANGED
@@ -14,31 +14,9 @@
14
14
 
15
15
  $id1 = $_POST['id'];
16
16
 
17
- }
17
+ } 
18
18
 
19
- if(isset($_POST['touroku']) && $_POST['touroku'] != ""){
20
-
21
- $where[] = "( touroku = '" . $_POST['touroku']."')";
22
-
23
- $touroku1 = $_POST['touroku'];
24
-
25
- }
19
+ 省略
26
-
27
- if(isset($_POST['codo']) && $_POST['codo'] != ""){
28
-
29
- $where[] = "( codo = '" . $_POST['codo']."')";
30
-
31
- $codo1 = $_POST['codo'];
32
-
33
- }
34
-
35
- if(isset($_POST['name']) && $_POST['name'] != ""){
36
-
37
- $where[] = "( name = '" . $_POST['name']."')";
38
-
39
- $name1 = $_POST['name'];
40
-
41
- }
42
20
 
43
21
 
44
22
 
@@ -58,35 +36,31 @@
58
36
 
59
37
  echo "~検索結果~";
60
38
 
61
- ?> <br> <table border="1" bordercolor="#FF0000">
62
-
63
- <tr><th width="200">id</th><th width="200">トークン</th><th width="200">サイト名</th><th width="200">登録日</th><th width="200">広告コード</th><th width="200">名前</th><th width="200">メールアドレス</th><th width="200">電話番号</th><th width="200">予備</th></tr>
64
-
65
- <?php
39
+ ?>
66
40
 
67
41
 
68
42
 
69
- foreach($stmt as $cms){
43
+ foreach($stmt as $){
70
44
 
71
45
 
72
46
 
73
- $id1=$cms['id'];
47
+ $id1=$['id'];
74
48
 
75
- $tokun1=$cms['tokun'];
49
+ $tokun1=$[''];
76
50
 
77
- $kon1=$cms['kon'];
51
+ $kon1=$[''];
78
52
 
79
- $touroku1=$cms['touroku'];
53
+ $touroku1=$['touroku'];
80
54
 
81
- $codo1=$cms['codo'];
55
+ $codo1=$['codo'];
82
56
 
83
- $name1=$cms['name'];
57
+ $name1=$['name'];
84
58
 
85
- $mail1=$cms['mail'];
59
+ $mail1=$[''];
86
60
 
87
- $tel1=$cms['tel'];
61
+ $tel1=$[''];
88
62
 
89
- $yobi1=$cms['yobi'];
63
+ $yobi1=$['yobi'];
90
64
 
91
65
 
92
66
 

1

修正

2020/11/30 05:36

投稿

ayuayuayu
ayuayuayu

スコア68

test CHANGED
File without changes
test CHANGED
@@ -48,7 +48,7 @@
48
48
 
49
49
 
50
50
 
51
- $sql = "SELECT * FROM cms WHERE" .$where;
51
+ $sql = "SELECT * FROM WHERE" .$where;
52
52
 
53
53
 
54
54