테스트 사이트 - 개발 중인 베타 버전입니다

뭐가 잘못됐는지 알수가 없습니다. 채택완료

디비박스 8년 전 조회 2,214

  이전글 다음글을 여러고수님들 덕분에 구현했는데, 다음글이 이상하게 나옵니다.

도와주세요


 



 

</p><p><!-- { 이전글 다음글 -->
    <div class="prv_head01 prv_wrap">
        <table>
        <caption><?php echo $board['bo_subject'] ?> 이전글 다음글 보기</caption>
        <thead>
        <tr>
  <td scope="col" bgcolor=#f4f4f4 style="text-align:center; width:100px;">이전글 <img src="<?php echo $board_skin_url ?>/img/arr_prev.png" title="이전글"></td>
  <td scope="col" class="td_subject" style="padding-left:10px;"><?php if ($prev_href) { ?><a href="<?php echo $prev_href ?>"><?php echo $prev_wr_subject; ?></a><?php }  else { ?>등록된 게시물이 없습니다<?php } ?></td>
  <td scope="col" style="text-align:center; width:80px;"><?php if ($prev_href) echo date("Y-m-d", strtotime($prev['wr_datetime'])) ?></td>
        </tr>
        <tr>
  <td scope="col" bgcolor=#f4f4f4 style="text-align:center; width:100px;">다음글 <img src="<?php echo $board_skin_url ?>/img/arr_next.png" title="다음글"></td>
  <td scope="col" class="td_subject" style="padding-left:10px;"><?php if ($next_href) { ?><a href="<?php echo $next_href ?>"><?php echo $next_wr_subject; ?></a><?php }  else { ?>등록된 게시물이 없습니다<?php } ?></td>
  <td scope="col"  style="text-align:center; width:80px;"><?php if ($next_href) echo date("Y-m-d", strtotime($next['wr_datetime'])) ?></td>
        </tr>
  </table>
 </div>
    <!-- } 이전글 다음글 끝 --></p><p>

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
8년 전

bbs/view.php 파일 수정을 제대로 안 하신 것 같습니다.

http://gnustudy.com/bbs/board.php?bo_table=skin_board&wr_id=64">http://gnustudy.com/bbs/board.php?bo_table=skin_board&wr_id=64

두 군데 있다고 설명해드렸는데..


// 아래글을 얻음

이 아래 줄에 있는 코드에도 , wr_datetime 을 추가하세요.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

감사합니다 거기에 , wr_datetime  빠져있네요 ^^

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인