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

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>
|

댓글 3개

echo $list[$i]['wr_name']; 일겁니다 아마도.....^^;
제가 php를 잘 몰라서 그런지 그렇게 해도 오류가 나네요.
이름나오게... 해당 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>

하면 되겠지만 열이 맞지 않아서 삐쭉빼쭉 보기 안좋을 것 같습니다.
======================
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,418
18년 전 조회 1,709
18년 전 조회 1,374
18년 전 조회 1,301
18년 전 조회 1,537
18년 전 조회 1,249
18년 전 조회 1,740
18년 전 조회 1,561
18년 전 조회 1,531
18년 전 조회 1,679
18년 전 조회 1,510
18년 전 조회 1,305
18년 전 조회 1,680
18년 전 조회 1,532
18년 전 조회 1,783
18년 전 조회 1,527
18년 전 조회 1,347
18년 전 조회 1,666
18년 전 조회 1,525
18년 전 조회 1,888
🐛 버그신고