質問編集履歴
1
HTMLに関する部分は削除しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,6 +25,16 @@
|
|
25
25
|
大変勝手で恐縮ですが、お知恵をお貸しいただけると幸いです。
|
26
26
|
|
27
27
|
|
28
|
+
|
29
|
+
※ログインに関する記述でない所でログインのプログラムに
|
30
|
+
|
31
|
+
問題が出ている可能性があるため、全文載せさせていただいております。
|
32
|
+
|
33
|
+
お目汚し申し訳ございません・・・
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
▼index.php
|
28
38
|
|
29
39
|
------------------------------------------------------------------
|
30
40
|
|
@@ -149,111 +159,3 @@
|
|
149
159
|
}
|
150
160
|
|
151
161
|
?>
|
152
|
-
|
153
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml1-transitional.dtd">
|
154
|
-
|
155
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
156
|
-
|
157
|
-
<head>
|
158
|
-
|
159
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
160
|
-
|
161
|
-
<link rel="stylesheet" type="text/css" href="style.css" />
|
162
|
-
|
163
|
-
<title>2ch・twitter風掲示板</title>
|
164
|
-
|
165
|
-
</head>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
<body>
|
170
|
-
|
171
|
-
<div id="wrap">
|
172
|
-
|
173
|
-
<div id="head">
|
174
|
-
|
175
|
-
<h1>2ch・twitter風掲示板</h1>
|
176
|
-
|
177
|
-
</div>
|
178
|
-
|
179
|
-
<div id="content">
|
180
|
-
|
181
|
-
<div style="text-align: right"><a href="logout.php">ログアウト</a></div>
|
182
|
-
|
183
|
-
<form action="" method="post">
|
184
|
-
|
185
|
-
<dl>
|
186
|
-
|
187
|
-
<dt><?php echo htmlspecialchars($member['name']); ?>さん、メッセージをどうぞ</dt>
|
188
|
-
|
189
|
-
<dd>
|
190
|
-
|
191
|
-
<textarea name="messege" cols="50" rows="5"></textarea>
|
192
|
-
|
193
|
-
</dd>
|
194
|
-
|
195
|
-
</dl>
|
196
|
-
|
197
|
-
<div>
|
198
|
-
|
199
|
-
<p>
|
200
|
-
|
201
|
-
<input type="submit" value="投稿する" />
|
202
|
-
|
203
|
-
</p>
|
204
|
-
|
205
|
-
</div>
|
206
|
-
|
207
|
-
</form>
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
<?php
|
212
|
-
|
213
|
-
while($post = mysqli_fetch_assoc($posts)):
|
214
|
-
|
215
|
-
?>
|
216
|
-
|
217
|
-
<div class="msg">
|
218
|
-
|
219
|
-
<img src="member_picture/<?php echo h($post['picture']); ?>" width="48" height="48" alt="<?php echo h($post['name']); ?>" />
|
220
|
-
|
221
|
-
<p><?php echo makeLink(h($post['message'])); ?><span class="name"> (<?php echo h($post['name']); ?>) </span>[<a href="index.php?res=<?php echo h($post['id']); ?>">Re</a>]</p>
|
222
|
-
|
223
|
-
<p class="day"><a href="view.php?id=<?php echo h($post['id']); ?>"><?php echo h($post['created']); ?></a>
|
224
|
-
|
225
|
-
<?php
|
226
|
-
|
227
|
-
if ($post['reply_post_id'] > 0):
|
228
|
-
|
229
|
-
?>
|
230
|
-
|
231
|
-
<a href="view.php?id=<?php echo h($post['reply_post_id']); ?>">返信元のメッセージ</a>
|
232
|
-
|
233
|
-
<?php
|
234
|
-
|
235
|
-
endif;
|
236
|
-
|
237
|
-
?>
|
238
|
-
|
239
|
-
</p>
|
240
|
-
|
241
|
-
</div>
|
242
|
-
|
243
|
-
<?php
|
244
|
-
|
245
|
-
endwhile;
|
246
|
-
|
247
|
-
?>
|
248
|
-
|
249
|
-
</div>
|
250
|
-
|
251
|
-
<div id="foot">
|
252
|
-
|
253
|
-
<p><img src="images/pic.png" width="136" alt="XXX" /></p>
|
254
|
-
|
255
|
-
</div>
|
256
|
-
|
257
|
-
</body>
|
258
|
-
|
259
|
-
</html>
|