최근게시물에 날짜와 이름도 출력시키려고 합니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최근게시물에 날짜와 이름도 출력시키려고 합니다. 정보

최근게시물에 날짜와 이름도 출력시키려고 합니다.

본문

http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=18079

이 최근게시물에 이름과 날짜도 넣으려고 합니다.
  subject 아래에다가  echo "{$list[$i]['name']}";
제가 멋대로 이렇게 넣어봤더니 다 오류가.....이름과 날짜를 출력시키는 방법 아시면
조언좀 부탁드립니다.

=========================================

  <table width="94%" align="center" border="0" cellpadding="0" cellspacing="0">
        <tr><td height="25" width="626"><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
          <?
          echo $list[$i]['icon_reply'] . " ";
          echo "<a href='{$list[$i]['href']}'>";
          if ($list[$i]['is_notice'])
              echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
          else
              echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
          echo "</a>";

          // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
          // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

          echo " " . $list[$i]['icon_new'];
          echo " " . $list[$i]['icon_file'];
          echo " " . $list[$i]['icon_link'];
          echo " " . $list[$i]['icon_hot'];
          echo " " . $list[$i]['icon_secret'];
          ?></td>
          <td align="center" width="239">
                        <p>&nbsp;</p>

          </td>
          <td align="right" width="59"><?
          if(!$list[$i][comment_cnt]) {
            echo "<img src='$latest_skin_path/img/now1.gif'>";
          }else{
            echo "<img src='$latest_skin_path/img/now2.gif'>";
          }?>
          </td>
    </tr>
      </table>

댓글 전체

이름나오게... 해당 td 값에 {$list[$i]['name']} 게 입력하시구요...
날짜나오게... 해당 td 값에 {$list[$i]['wr_datetime']}

=====================
요부분에 -->
</td>
          <td align="center" width="239">{$list[$i]['name']}</td>
          <td align="center" width="239">{$list[$i]['datetime2']}</td>
하시면 될 것 같습니다.

<추가>
이름과 날자가 한칸에 나오게 하려면

        <td align="center" width="239">{$list[$i]['name']} {$list[$i]['datetime2']}</td>

하면 되겠지만 열이 맞지 않아서 삐쭉빼쭉 보기 안좋을 것 같습니다.
======================
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT