Souvenir

최근글에 카테고리 나오게 하려면?

최근글에 카테고리를 나타낼 필요가 있습니다.
카테고리는 어찌 나타내죠...latest에요...

댓글 5개

땡스 카이루님!!
<?
$board1='gb_write_'.$bo_table.'_cat'; //카테고리 디비 테이블
$rowc= sql_fetch("select ca_name from $board1 where ca_id = '{$list[$i][ca_id]}'"); //쿼리하기.
?>

<?=$rowc[0]?> 불려오기..
-----------------------------------------------------------------------------------------------

허접소스 ^_^;;;
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$board1='gb_write_'.$bo_table.'_cat';
$rowc= sql_fetch("select ca_name from $board1 where ca_id = '{$list[$i][ca_id]}'");
?>

<? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif' width=7 height=7></td></tr>"; } ?>
<tr>
<td width=30 align=center><img src='<?=$latest_skin?>/icon_li.gif' width=7 height=7></td>
<td width='' height=20><a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][ca_id]?> <?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$rowc[0]?><?=$list[$i][commentcnt]?></span></span></a> <?=$list[$i][icon_new]?></td>
</tr>
<? } ?>
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

9,564건
+
제목 글쓴이 날짜 조회
05-01-13 조회 761
05-01-13 조회 833
05-01-12 조회 549
05-01-12 조회 508
05-01-12 조회 587
05-01-12 조회 535
05-01-12 조회 486
05-01-12 조회 626
05-01-12 조회 751
05-01-12 조회 385
05-01-12 조회 568
05-01-12 조회 552
05-01-12 조회 590
05-01-12 조회 407
05-01-12 조회 485
05-01-12 조회 479
05-01-12 조회 667
05-01-12 조회 548
05-01-12 조회 862
05-01-12 조회 540