index.php에 total_cout 넣는법 문의 정보
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개 라고만 나와요.
댓글 전체
sql_fetch_array
가 아니라
sql_fetch 입니다
가 아니라
sql_fetch 입니다
오투웹님 감사합니다. good advice!
완전 잘됩니다. 최고에요~
완전 잘됩니다. 최고에요~
어 저도 감사합니다.