인트로페이지에 total_count를 불러오려면... 정보
인트로페이지에 total_count를 불러오려면...
본문
list.skin.php에 있는 <?=number_format($total_count)?>를
인트로페이지에 불러오려면 어떻게 해야 되나요?
latest처럼 특정 게시판이름의 list_skin 총게시물수를 최근게시물로 불러오려고 합니다.^^;
<?=number_format($total_count)?>를 어떻게 이용하면 될 것 같은데, 도움 부탁 드려요.
인트로페이지에 불러오려면 어떻게 해야 되나요?
latest처럼 특정 게시판이름의 list_skin 총게시물수를 최근게시물로 불러오려고 합니다.^^;
<?=number_format($total_count)?>를 어떻게 이용하면 될 것 같은데, 도움 부탁 드려요.
댓글 전체
게시물 총수는 기본적으로 g4_board 해당 설정에 기록이 됩니다.
최근 게시물 스킨을 사용한다면 기본적으로 $board 를 불러내기 때문에
<?
$total_count = $board[bo_count_write];
?>
총게시물수 : <?=number_format($total_count)?>
이 코드를 넣으면 나올 것입니다.
최근 게시물 스킨을 사용한다면 기본적으로 $board 를 불러내기 때문에
<?
$total_count = $board[bo_count_write];
?>
총게시물수 : <?=number_format($total_count)?>
이 코드를 넣으면 나올 것입니다.

아..그렇게해도 안되네요.
index.php에 넣으려고 하거든요.
게시판 이름이 funny인데, funny게시판의 총 게시물을 index.php에 나오게 하려면
어떻게해야 되나요?ㅜㅜ
index.php에 넣으려고 하거든요.
게시판 이름이 funny인데, funny게시판의 총 게시물을 index.php에 나오게 하려면
어떻게해야 되나요?ㅜㅜ
추출을 해와야죠
<?
$row=sql_fetch_array("select bo_count_write from $g4[board_table] where bo_table='funny'");
$total_count=$row[bo_count_write];
echo $total_count;
?>
<?
$row=sql_fetch_array("select bo_count_write from $g4[board_table] where bo_table='funny'");
$total_count=$row[bo_count_write];
echo $total_count;
?>

<?
$row=sql_fetch_array("select bo_count_write from $g4[board_table] where bo_table='funny'");
$total_count=$row[bo_count_write];
echo $total_count;
?>
총 : <?=number_format($total_count)?>개
이렇게 하였는데, 안되요ㅠㅠ 왜 안될까요? 총 : 0개 라고만 나와요.
$row=sql_fetch_array("select bo_count_write from $g4[board_table] where bo_table='funny'");
$total_count=$row[bo_count_write];
echo $total_count;
?>
총 : <?=number_format($total_count)?>개
이렇게 하였는데, 안되요ㅠㅠ 왜 안될까요? 총 : 0개 라고만 나와요.