컴퓨터/인터넷(3441) 취미(8103) 방송/연예(3236)
음악(1725) 스포츠/레져(1583) 학교/동문(68069)
게임/길드(7030) 교육/스터디(1091) 가족/연인(1722)
지역(928) 사회/봉사(337) 친목/또래(18802)
팬클럽(8851) 종교/문학(1476) 애니/영화/연극(762)
이색모임(10248) 다모임포럼
제 능력으론 한계가 있어 부탁 드립니다
음악(1725) 스포츠/레져(1583) 학교/동문(68069)
게임/길드(7030) 교육/스터디(1091) 가족/연인(1722)
지역(928) 사회/봉사(337) 친목/또래(18802)
팬클럽(8851) 종교/문학(1476) 애니/영화/연극(762)
이색모임(10248) 다모임포럼
제 능력으론 한계가 있어 부탁 드립니다
댓글 3개
<?
// 클럽 카테고리
$sql = " select a.*, count(b.cb_id) as total
from $nc[tbl_category] as a
left join $nc[tbl_club] as b
on a.cc_id = b.cc_id
group by a.cc_id
order by a.cc_idx asc ";
$result = mysql_query($sql);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#EEEEEE" style="padding:7px 10px 5px 5px"><strong>카테고리</strong></td>
</tr>
<tr>
<td height="3"></td>
</tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ($i && ($i%3==0)) {
echo "</tr><tr>";
}
?>
<td style="padding:3px 10px 2px 10px"><a href="./club_index.php?doc=<?=rawurlencode("club_list.php?cc_id={$row[cc_id]}")?>"><?=$row[cc_name]?></a> <span class="tahoma10">(<?=$row[total]?>)</span></td>
<? } ?>
</table></td>
</tr>
</table>
요런거 말씀하시는 건가요??
// 클럽 카테고리
$sql = " select a.*, count(b.cb_id) as total
from $nc[tbl_category] as a
left join $nc[tbl_club] as b
on a.cc_id = b.cc_id
group by a.cc_id
order by a.cc_idx asc ";
$result = mysql_query($sql);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#EEEEEE" style="padding:7px 10px 5px 5px"><strong>카테고리</strong></td>
</tr>
<tr>
<td height="3"></td>
</tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ($i && ($i%3==0)) {
echo "</tr><tr>";
}
?>
<td style="padding:3px 10px 2px 10px"><a href="./club_index.php?doc=<?=rawurlencode("club_list.php?cc_id={$row[cc_id]}")?>"><?=$row[cc_name]?></a> <span class="tahoma10">(<?=$row[total]?>)</span></td>
<? } ?>
</table></td>
</tr>
</table>
요런거 말씀하시는 건가요??
게시글 목록
| 번호 | 제목 |
|---|---|
| 253 | |
| 240 | |
| 242 | |
| 229 | |
| 212 | |
| 208 | |
| 204 | |
| 200 | |
| 197 | |
| 193 | |
| 190 | |
| 188 | |
| 181 | |
| 177 | |
| 170 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기