최신글에서 게시판별로 글갯수 표시하고 싶은데요

Untitled-1.gif
이렇게 했습니다.
<?
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>


그런데
그림처럼 출력이 되네요

첨부파일

Untitled-1.gif (8.8 KB)
0회 2004-05-03 15:29
|
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
21년 전 조회 359
21년 전 조회 418
21년 전 조회 602
21년 전 조회 410
21년 전 조회 364
21년 전 조회 313
21년 전 조회 441
21년 전 조회 557
21년 전 조회 506
21년 전 조회 453
21년 전 조회 426
21년 전 조회 351
21년 전 조회 336
21년 전 조회 477
21년 전 조회 352
21년 전 조회 307
21년 전 조회 266
21년 전 조회 391
21년 전 조회 366
21년 전 조회 769
🐛 버그신고