<?php
function date_visit($Number,$Type){
if($Type == 0){
$Row_Sum = sql_fetch(" select * from g4_visit_sum where vs_date = '".date("Y-m-d",strtotime("-".$Number." day"))."' ");
return $Row_Sum['vs_count'];
}else if($Type == 1){
$Row_Sum = sql_fetch(" select sum(vs_count) as vs_count from g4_visit_sum ");
return $Row_Sum['vs_count'];
}
}
echo date_visit(0,1);
?>
echo date_visit(3,0);
// 3일전 방문자 출력
echo date_visit(3,1);
// 두번째 1이 들어가면 전체 방문자 출력이므로 3은 무시됩니다.
function date_visit($Number,$Type){
if($Type == 0){
$Row_Sum = sql_fetch(" select * from g4_visit_sum where vs_date = '".date("Y-m-d",strtotime("-".$Number." day"))."' ");
return $Row_Sum['vs_count'];
}else if($Type == 1){
$Row_Sum = sql_fetch(" select sum(vs_count) as vs_count from g4_visit_sum ");
return $Row_Sum['vs_count'];
}
}
echo date_visit(0,1);
?>
echo date_visit(3,0);
// 3일전 방문자 출력
echo date_visit(3,1);
// 두번째 1이 들어가면 전체 방문자 출력이므로 3은 무시됩니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 34706 | |
| 34693 | |
| 34563 | |
| 34536 | |
| 34521 | |
| 34480 | |
| 34479 | |
| 34466 | |
| 34437 | |
| 34436 | |
| 34435 | |
| 34406 | |
| 34398 | |
| 34387 | |
| 34382 | |
| 34375 | |
| 34364 | |
| 34336 | |
| 34294 | |
| 34293 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기