|
|
|
12년 전
|
조회 1,281
|
|
|
|
12년 전
|
조회 1,540
|
|
|
|
12년 전
|
조회 2,725
|
|
|
|
12년 전
|
조회 1,521
|
|
|
|
12년 전
|
조회 1,215
|
|
|
|
12년 전
|
조회 1,222
|
|
|
|
12년 전
|
조회 1,514
|
|
|
|
12년 전
|
조회 1,595
|
|
|
씨네울프
|
12년 전
|
조회 796
|
|
|
|
12년 전
|
조회 974
|
|
|
|
12년 전
|
조회 953
|
|
|
|
12년 전
|
조회 840
|
|
|
|
12년 전
|
조회 3,463
|
|
|
|
12년 전
|
조회 1,610
|
|
|
|
12년 전
|
조회 1,862
|
|
|
|
12년 전
|
조회 1,630
|
|
|
|
12년 전
|
조회 1,015
|
|
|
|
12년 전
|
조회 3,583
|
|
|
|
12년 전
|
조회 1,534
|
|
|
|
12년 전
|
조회 969
|
댓글 2개
그러나 이건 따로
년도별, 월별 구분 하는 페이지가 필요 하므로
프로그램 작업이 필요 할 듯 합니다.
date_format(); 함수 이용해서 가능합니다.
즉
<?php
$check_date = date("Y-m");
$result = sql_fetch("select count(*) as cnt from g4_member where date_format(mb_datetime, '%Y-%m') = '$check_date'");
echo $result['cnt'];
?>
<?php
$que="select date_format(mb_datetime, '%Y-%m'), count( *) from g4_member group by 1 order by 1";
$result = sql_query($que);
while( ($row = sql_fetch_array($result) == true)
{
}
?>
2013-05 4
2013-06 7
2013-07 7
2013-08 1
2013-09 3
전 이렇게 나오는 군요.