최신글에서 게시판별로 글갯수 표시하고 싶은데요 정보
그누보드 최신글에서 게시판별로 글갯수 표시하고 싶은데요본문
이렇게 했습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "모든 게시판의 게시물수";
?>
<table width=100% cellpadding=0 cellspacing=0 align=center>
<tr><td height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
<tr><td class='subject subjectbg ht'> <?=$html_title?></td></tr>
<tr><td height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0 align=center>
<tr>
<td width='' valign=top>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td colspan=4 height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
<tr class='subject subjectbg ht' align="center">
<td>게시판</td>
<td>제목</td>
<td>조회수</td>
</tr>
<?
$sql = " select * from $cfg[table_board] where gr_id='juane' ";
// 물론 코멘트는 제외 입니다
$result = sql_query($sql);
while($row = mysql_fetch_array($result)) {
echo "테이블명 : $row['bo_table'] => 글의갯수 : $row['bo_total_count'] <br>";
}
mysql_free_result($result);
?>
<?
if ($rcount) {
echo "<tr><td align=center>TOTAL</td><td colspan=2 align=center>$rcount</td></tr>";
} else {
echo "<td height=100 align=center colspan=3>등록된 글이 없습니다.</td>";
}
?>
</table>
<p>
</td>
</tr>
</table>
그런데
그림처럼 출력이 되네요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "모든 게시판의 게시물수";
?>
<table width=100% cellpadding=0 cellspacing=0 align=center>
<tr><td height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
<tr><td class='subject subjectbg ht'> <?=$html_title?></td></tr>
<tr><td height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0 align=center>
<tr>
<td width='' valign=top>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td colspan=4 height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
<tr class='subject subjectbg ht' align="center">
<td>게시판</td>
<td>제목</td>
<td>조회수</td>
</tr>
<?
$sql = " select * from $cfg[table_board] where gr_id='juane' ";
// 물론 코멘트는 제외 입니다
$result = sql_query($sql);
while($row = mysql_fetch_array($result)) {
echo "테이블명 : $row['bo_table'] => 글의갯수 : $row['bo_total_count'] <br>";
}
mysql_free_result($result);
?>
<?
if ($rcount) {
echo "<tr><td align=center>TOTAL</td><td colspan=2 align=center>$rcount</td></tr>";
} else {
echo "<td height=100 align=center colspan=3>등록된 글이 없습니다.</td>";
}
?>
</table>
<p>
</td>
</tr>
</table>
그런데
그림처럼 출력이 되네요
댓글 전체