답변 1개 / 댓글 2개
채택된 답변
+20 포인트
아래와 같이 해보세요.
Copy
$sql = "select count(*) as cnt from g5_write_31 where ca_name = '(카테고리명)'";
$category_count = sql_fetch($sql);
$category_count = $category_count['cnt'];
echo $category_count;
답변을 작성하려면 로그인이 필요합니다.