<?php
function board_count($bo_table){
$Row = sql_fetch(" select bo_count_write from g4_board where bo_table = '".$bo_table."' ");
return $Row['bo_count_write'];
}
echo board_count('notice');
?>
echo board_count('원하는 게시판');
function board_count($bo_table){
$Row = sql_fetch(" select bo_count_write from g4_board where bo_table = '".$bo_table."' ");
return $Row['bo_count_write'];
}
echo board_count('notice');
?>
echo board_count('원하는 게시판');
댓글 7개
1개 출력은 잘 됩니다... 그런데 2개 출력시... 잘안되네요 그래서 질답 글 남겼더니...
----------------------------------------------------
<?php
function board_count($bo_table){
$Row = sql_fetch(" select bo_count_write from g4_board where bo_table = '".$bo_table."' ");
return $Row['bo_count_write'];
}
?>
이렇게만 해주시고.. 원하는 위치에 아래처럼
임시게시판 1 총 게시글: <? echo board_count('B1'); ?>
임시게시판 2 총 게시글: <? echo board_count('B2'); ?>
-----------------------------------------------------------
답변이 달렸네요 이런식으로하니 잘 되네요.
----------------------------------------------------
<?php
function board_count($bo_table){
$Row = sql_fetch(" select bo_count_write from g4_board where bo_table = '".$bo_table."' ");
return $Row['bo_count_write'];
}
?>
이렇게만 해주시고.. 원하는 위치에 아래처럼
임시게시판 1 총 게시글: <? echo board_count('B1'); ?>
임시게시판 2 총 게시글: <? echo board_count('B2'); ?>
-----------------------------------------------------------
답변이 달렸네요 이런식으로하니 잘 되네요.
게시글 목록
| 번호 | 제목 |
|---|---|
| 33565 | |
| 33549 | |
| 33548 | |
| 33500 | |
| 33497 | |
| 33495 | |
| 33484 | |
| 33483 | |
| 33474 | |
| 33465 | |
| 33464 | |
| 33462 | |
| 33461 | |
| 33457 | |
| 33456 | |
| 33441 | |
| 33440 | |
| 33417 | |
| 33416 | |
| 33415 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기