소스 잠깐 수정해주세여^^
<?=
$bo_table = "people01";
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
$sql = " select count(*) as cnt from {$tmp_write_table} where wr_is_comment = 0 and ca_name = 'designer' and wr_5 = 'ㄴ' ";
$row = sql_fetch($sql);
echo $row[cnt];
?>
해당 게시판에서 카테고리 갯수를 구하는 소스인데.
계속 게시판의 이름이 people01 이라고 나옵니다.
예를들어 people01카테고리갯수로 나오는데
그냥 카테고리 갯수만 나오게 수정해주세요^^ ^^
$bo_table = "people01";
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
$sql = " select count(*) as cnt from {$tmp_write_table} where wr_is_comment = 0 and ca_name = 'designer' and wr_5 = 'ㄴ' ";
$row = sql_fetch($sql);
echo $row[cnt];
?>
해당 게시판에서 카테고리 갯수를 구하는 소스인데.
계속 게시판의 이름이 people01 이라고 나옵니다.
예를들어 people01카테고리갯수로 나오는데
그냥 카테고리 갯수만 나오게 수정해주세요^^ ^^
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 4개
$c_count=$row[cnt];
<?= number_format($c_count)?>
출력할때 number_format함수로 출력하라는 말