t

관리자 화면에서 총회원수에 남여 회원수 나타내기 질문

안녕하세요.
관리자회원 관리에서 총회원수 옆에 남,여회원수를 따로 보여주고싶습니다.

// 탈퇴회원수
$sql = " select count(*) as cnt
$sql_common
$sql_search
and mb_leave_date <> ''
$sql_order ";
$row = sql_fetch($sql);
$leave_count = $row[cnt];

// 차단회원수
$sql = " select count(*) as cnt
$sql_common
$sql_search
and mb_intercept_date <> ''
$sql_order ";
$row = sql_fetch($sql);
$intercept_count = $row[cnt];

<td width=50% align=left><?=$listall?>
(총회원수 : <?=number_format($total_count)?>,
<a href='?sst=mb_intercept_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>' title='차단된 회원부터 출력'><font color=orange>차단 : <?=number_format($intercept_count)?></font></a>,
<a href='?sst=mb_leave_date&sod=desc&sfl=<?=$sfl?>&stx=<?=$stx?>' title='탈퇴한 회원부터 출력'><font color=crimson>탈퇴 : <?=number_format($leave_count)?></font></a>)
</td>
|

댓글 2개

$chk=sql_fetch(" SELECT SUM(IF(mb_sex==F,1,0)) as tot_man_cnt, SUM(IF(mb_sex==M,1,0)) as tot_woman_cnt WHERE $g4[member_table] ");
감사합니다.
그런데 오류가 나오네요...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,574
14년 전 조회 1,616
14년 전 조회 964
14년 전 조회 827
14년 전 조회 1,015
14년 전 조회 844
14년 전 조회 1,674
14년 전 조회 1,734
14년 전 조회 1,017
14년 전 조회 983
14년 전 조회 2,337
14년 전 조회 861
14년 전 조회 992
14년 전 조회 990
14년 전 조회 1,069
14년 전 조회 1,042
14년 전 조회 988
14년 전 조회 1,570
14년 전 조회 1,607
14년 전 조회 870