댓글에 답글을 쓰면, "수정"이라는 글이 나오게 한상태입니다.
하지만 번호는 계속 순차적으로 나가네요..
답글은 건너뛰고, 댓글 번호가 연속으로 나왔으면 합니다.
view_comment.skin.php파일
<?
for ($i=1; $i<count($list); $i++) {
$n = 0;
$comment_id = $list[$i][wr_id];
// 여분필드 wr_1 불러오기
$wr1 = explode("|",$list[$i][wr_1]);
?>
<a name="<?=$comment_id?>"</a>
<tr>
<td style="border-bottom-width:1px; border-bottom-color:#FF6600; border-bottom-style:dotted;"> <span style="font-weight:bold;">
<? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) { $n = 1;
echo"수정"; ?><? } ?>
<? if($n == 0) echo"$i"; ?>
</span>
이 부분을 수정하면 될듯한데... 알려주시면 감사하겠습니다.
하지만 번호는 계속 순차적으로 나가네요..
답글은 건너뛰고, 댓글 번호가 연속으로 나왔으면 합니다.
view_comment.skin.php파일
<?
for ($i=1; $i<count($list); $i++) {
$n = 0;
$comment_id = $list[$i][wr_id];
// 여분필드 wr_1 불러오기
$wr1 = explode("|",$list[$i][wr_1]);
?>
<a name="<?=$comment_id?>"</a>
<tr>
<td style="border-bottom-width:1px; border-bottom-color:#FF6600; border-bottom-style:dotted;"> <span style="font-weight:bold;">
<? for ($k=0; $k<strlen($list[$i][wr_comment_reply]); $k++) { $n = 1;
echo"수정"; ?><? } ?>
<? if($n == 0) echo"$i"; ?>
</span>
이 부분을 수정하면 될듯한데... 알려주시면 감사하겠습니다.
첨부파일
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기