<?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'); ?>
-----------------------------------------------------------
답변이 달렸네요 이런식으로하니 잘 되네요.
게시글 목록
| 번호 | 제목 |
|---|---|
| 33133 | |
| 33132 | |
| 33099 | |
| 33091 | |
| 33090 | |
| 33075 | |
| 33070 | |
| 33068 | |
| 33065 | |
| 33043 | |
| 33031 | |
| 33030 | |
| 33028 | |
| 33018 | |
| 33016 | |
| 33006 | |
| 33005 | |
| 33000 | |
| 32984 | |
| 32974 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기