index.php에 total_cout 넣는법 문의
funny게시판의 총게시물수를 index.php에 latest처럼 불러오려고 하는데,
잘 안되네요.
<?
$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개 라고만 나와요.
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 3개
가 아니라
sql_fetch 입니다
완전 잘됩니다. 최고에요~