質問編集履歴

4

現在の会員登録画面です。

2016/07/18 00:10

投稿

rura
rura

スコア70

test CHANGED
File without changes
test CHANGED
File without changes

3

ATOMとphpMyAdminを変更しました

2016/07/18 00:10

投稿

rura
rura

スコア70

test CHANGED
File without changes
test CHANGED
@@ -32,7 +32,13 @@
32
32
 
33
33
 
34
34
 
35
+ $q = "SELECT company,
36
+
35
- $q = "SELECT company,id,password,last_name,first_name,gender,age,zip,prefecture,city,addressnam,bill,tell,fax,email,registration_date, id FROM users ORDER BY registration_date ASC";
37
+ id,password,last_name,first_name,gender,age,zip,prefecture,city,
38
+
39
+ addressnam,bill,tell,fax,email,registration_date, id
40
+
41
+ FROM users ORDER BY registration_date ASC";
36
42
 
37
43
  /*$q =mysqli_query($dbc , "UPDATE `users`
38
44
 
@@ -276,4 +282,4 @@
276
282
 
277
283
  ###補足情報(言語/FW/ツール等のバージョンなど)
278
284
 
279
- php,ATOM,phpマイアドムイン
285
+ php,phpMyAdmin

2

これでよいでしょうか?

2016/07/17 12:52

投稿

rura
rura

スコア70

test CHANGED
File without changes
test CHANGED
@@ -24,9 +24,7 @@
24
24
 
25
25
  ###該当のソースコード
26
26
 
27
- ``
28
-
29
- <?php
27
+ ```<?php
30
28
 
31
29
  //connection.php(データベース連携)userform.php(登録画面)からの出力結果
32
30
 
@@ -38,11 +36,39 @@
38
36
 
39
37
  /*$q =mysqli_query($dbc , "UPDATE `users`
40
38
 
41
- SET id='$id_user',company=[value-2],`first_name`=[value-3],`last_name`=[value-4],`tell`=[value-5],`fax`=[value-6],
39
+ SET id='$id_user',company=[value-2],
40
+
42
-
41
+ `first_name`=[value-3],
42
+
43
+ `last_name`=[value-4],
44
+
45
+ `tell`=[value-5],
46
+
47
+ `fax`=[value-6],
48
+
49
+ `email`=[value-7],
50
+
51
+ `gender`=[value-8],
52
+
53
+ `age`=[value-9],
54
+
55
+ `zip`=[value-10],
56
+
43
- `email`=[value-7],`gender`=[value-8],`age`=[value-9],`zip`=[value-10],`prefecture`=[value-11],`city`=[value-12],`addressnam`=[value-13],
57
+ `prefecture`=[value-11],
58
+
44
-
59
+ `city`=[value-12],
60
+
61
+ `addressnam`=[value-13],
62
+
63
+ `bill`=[value-14],
64
+
65
+ `coments`=[value-15],
66
+
67
+ `password`=[value-16],
68
+
45
- `bill`=[value-14],`coments`=[value-15],`password`=[value-16],`registration_date`=[value-17] WHERE 1);*/
69
+ `registration_date`=[value-17]
70
+
71
+ WHERE 1);*/
46
72
 
47
73
 
48
74
 

1

問題のphpだけを修正しました

2016/07/17 11:53

投稿

rura
rura

スコア70

test CHANGED
File without changes
test CHANGED
@@ -26,245 +26,11 @@
26
26
 
27
27
  ``
28
28
 
29
- <!DOCTYPE HTML PUBLIC >
30
-
31
- <html lang="ja">
32
-
33
- <head>
34
-
35
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
36
-
37
- <link rel="stylesheet" type="text/css" href="exzample.css">
38
-
39
- <link rel="stylesheet" type="text/css" href="CSS/body.css">
40
-
41
- <link rel="stylesheet" type="text/css" href="img">
42
-
43
- <title>労務管理システム 登録者一覧表</title>
44
-
45
- </head>
46
-
47
- <body>
48
-
49
-
50
-
51
- <!-- コンテナ開始 -->
52
-
53
- <div id="container">
54
-
55
- <div id="containerInner">
56
-
57
- <!-- ヘッダ開始 -->
58
-
59
-
60
-
61
- <div id="header"><h1>労務管理システム</h1></div>
62
-
63
- <div class="globalnavi">
64
-
65
- <ul class="nl clearFix">
66
-
67
- <li><a href="http://localhost/roumu/management/mgList.php">登録者一覧表</a></li>
68
-
69
- <li><a href="http://localhost/roumu/management/mgMyPage.php">マイページ</a></li>
70
-
71
- <li><a href="#">支店登録情報</a></li>
72
-
73
- </ul>
74
-
75
- </div>
76
-
77
-
78
-
79
- <!-- ヘッダ終了 -->
80
-
81
- <div id="wrapper">
82
-
83
- <ol class="topicPath">
84
-
85
- <li><a href="http://localhost/roumu/management/login.php">管理者ログイン</a>&gt;</li>
86
-
87
- <li><a href="../Diligence.php">登録者一覧表</a>&gt;</li>
88
-
89
- </ol>
90
-
91
- <!-- ナビゲーション開始 左サイドバー -->
92
-
93
- <aside>
94
-
95
- <div id="nav">
96
-
97
- <div class="section">
98
-
99
- <h3>メニュー</h3>
100
-
101
-
102
-
103
- <form name="form1">
104
-
105
- <table>
106
-
107
- <tbody>
108
-
109
- <th>現在時刻</th>
110
-
111
- <td>
112
-
113
- <p id="RealtimeClockArea2"></p>
114
-
115
- <script type="text/javascript">
116
-
117
- function set2fig(num) {
118
-
119
- // 桁数が1桁だったら先頭に0を加えて2桁に調整する
120
-
121
- var ret;
122
-
123
- if( num < 10 ) { ret = "0" + num; }
124
-
125
- else { ret = num; }
126
-
127
- return ret;
128
-
129
- }
130
-
131
- function showClock2() {
132
-
133
- var nowTime = new Date();
134
-
135
- var nowHour = set2fig( nowTime.getHours() );
136
-
137
- var nowMin = set2fig( nowTime.getMinutes() );
138
-
139
- var nowSec = set2fig( nowTime.getSeconds() );
140
-
141
- var msg = nowHour + "時" + nowMin + "分" + nowSec+ "秒";
142
-
143
- document.getElementById("RealtimeClockArea2").innerHTML = msg;
144
-
145
- }
146
-
147
- setInterval('showClock2()',1000);
148
-
149
- </script>
150
-
151
- </td>
152
-
153
- <tr>
154
-
155
- <th>会員番号</th>
156
-
157
- <td><input type="text" name="number" id="number1"placeholder="00000"></td>
158
-
159
- </tr>
160
-
161
- <tr>
162
-
163
- <th>名前</th>
164
-
165
- <td><input type="text" name="number" id="uname" placeholder="田具 太郎"></td>
166
-
167
- </tr>
168
-
169
- <tr>
170
-
171
- <th>日付</th>
172
-
173
- <td><?php echo $today = date("Y年m月d日");
174
-
175
- //曜日番号に対応する日本語の曜日リスト
176
-
177
- $weekjp_array = array('日', '月', '火', '水', '木', '金', '土');
178
-
179
- //今日の曜日
180
-
181
- $weekno = date('w');
182
-
183
- $weekjp = $weekjp_array[$weekno];
184
-
185
- echo $weekjp . '曜日';?></td>
186
-
187
- </tr>
188
-
189
- </tbody>
190
-
191
- </table>
192
-
193
- </form>
194
-
195
-
196
-
197
- <h3>勤怠登録</h3>
198
-
199
- <form name="form1">
200
-
201
- <table>
202
-
203
- <tbody>
204
-
205
- <tr>
206
-
207
- <th>出勤</th>
208
-
209
- <td><input type="submit" value="出勤登録"></td>
210
-
211
- <td><input type="time" name="time3"></td>
212
-
213
- </tr>
214
-
215
- <tr>
216
-
217
- <th>退勤</th>
218
-
219
- <td><input type="submit" name="submit" value="退勤登録"></td>
220
-
221
- <td><input type="time" name="time4"></td>
222
-
223
- </tr>
224
-
225
- <tr>
226
-
227
- <th>退職手続</th>
228
-
229
- <td><input type="submit" name="taisyoku1"value="退職手続"></td>
230
-
231
- </tr>
232
-
233
- </tbody>
234
-
235
- </table>
236
-
237
- </form>
238
-
239
- </div>
240
-
241
- </aside>
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
- <!-- メインカラム開始 -->
250
-
251
- <div id="content">
252
-
253
- <div id="contentInner">
254
-
255
-
256
-
257
- <div class="pagetitle">
258
-
259
- <div class="pagetitles"><h3>-○マイページの編集○ー</h3></div>
260
-
261
- </div><!-- pagetitle -->
262
-
263
29
  <?php
264
30
 
265
31
  //connection.php(データベース連携)userform.php(登録画面)からの出力結果
266
32
 
267
- include ('connection.php');
33
+ include ('connection.php');//
268
34
 
269
35
 
270
36
 
@@ -288,7 +54,7 @@
288
54
 
289
55
 
290
56
 
291
- if ($num > 0) {
57
+ if ($num > 0) {//出力結果を一覧表示
292
58
 
293
59
  echo "<br><div class='dbs'>";
294
60
 
@@ -302,9 +68,9 @@
302
68
 
303
69
  echo "<tr>
304
70
 
305
- <th><a href='edit_user.php?user_id =". $row['id']."'>編集</a></th>
71
+ <th><a href='edit_user.php?user_id =". $row['id']."'>編集</a></th>//編集で内容を変更
306
-
72
+
307
- <th><a href='delete.php?user_id =".$row['id']."&fname=".$row['first_name']."&lname=".$row['last_name']."'>削除</a></th>
73
+ <th><a href='delete.php?user_id =".$row['id']."&fname=".$row['first_name']."&lname=".$row['last_name']."'>削除</a></th>//削除で内容を削除
308
74
 
309
75
  <tr>
310
76
 
@@ -470,46 +236,6 @@
470
236
 
471
237
 
472
238
 
473
- </table>
474
-
475
- </div>
476
-
477
- </div>
478
-
479
- </div><!-- contentInner -->
480
-
481
- </div><!-- content -->
482
-
483
- <!-- メインカラム終了 -->
484
-
485
-
486
-
487
- <!-- フッタ開始 -->
488
-
489
- <div id="footer">
490
-
491
- <p>Copyright© 2016 あいち福祉振興会 All Rights Reserved. by yuka umemura</p>
492
-
493
- </div>
494
-
495
- <!-- フッタ終了 -->
496
-
497
-
498
-
499
- </div>
500
-
501
- </div>
502
-
503
- </div>
504
-
505
- <!-- コンテナ終了 -->
506
-
507
-
508
-
509
- </body>
510
-
511
- </html>
512
-
513
239
 
514
240
 
515
241
  ```