최근게시물에 날짜와 이름도 출력시키려고 합니다. 정보
최근게시물에 날짜와 이름도 출력시키려고 합니다.관련링크
본문
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>
<?
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> </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>
이 최근게시물에 이름과 날짜도 넣으려고 합니다.
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>
<?
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> </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>
댓글 전체

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>
하면 되겠지만 열이 맞지 않아서 삐쭉빼쭉 보기 안좋을 것 같습니다.
======================
날짜나오게... 해당 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>
하면 되겠지만 열이 맞지 않아서 삐쭉빼쭉 보기 안좋을 것 같습니다.
======================