½Ã°£´ëº° |
½Ã°£ |
±×·¡ÇÁ |
Á¢¼Ó¼ö |
ºñÀ² |
$q1 = mysqlQuery(" select count(code) from n_counter where visited like '$where%' order by visited desc ");
$c1 = mysqlFetch($q1);
$totalCount = number_format($c1[0]);
if($c1[0] == 0) { $totalPercent = 0; } else { $totalPercent = 100; }
///////////////////////////////// ½Ã°£´ëº° ///////////////////////////////////////////
echo("
Àüü |
|
$totalCount |
$totalPercent% |
");
for($i=0;$i<24;$i++) {
$startTime = sprintf('%02d',$i);
$endTime = sprintf('%02d',$i+1);
$q2 = mysqlQuery(" select count(code) from n_counter where visited like '$where%' and visited like '____-__-__ $startTime:__:__' ");
$c2 = mysqlFetch($q2);
$totalTime = number_format($c2[0]);
if($c1[0] != 0) { $timePercent = round($c2[0] / $c1[0] * 100); } else { $timePercent = 0; }
$bgColor = randomColor($i);
echo("
$startTime:00 ~ $endTime:00 |
|
$totalTime |
$timePercent% |
");
}
?>
|
ºê¶ó¿ìÀúº° |
ºê¶ó¿ìÀú |
±×·¡ÇÁ |
Á¢¼Ó¼ö |
ºñÀ² |
Àüü |
|
=$totalCount?> |
=$totalPercent?>% |
$qs1 = mysqlQuery(" select count(code) from n_counter where visited like '$where%' and browser like '%MSIE%' ");
$cs1 = mysqlFetch($qs1);
$msTotal = $cs1[0];
$qs2 = mysqlQuery(" select count(code) from n_counter where visited like '$where%' and browser like '%Netscape%' ");
$cs2 = mysqlFetch($qs2);
$nsTotal = $cs2[0];
$browserList = Array('MSIE 5.0;','MSIE 5.01;','MSIE 5.5;','MSIE 6.0;','Netscape/7.0');
for($i=0;$i
$browserList[$i] |
|
$browserCount |
$browserPercent% |
");
if($i == 3) {
$msTotal_ = number_format($msTotal);
if($c1[0] != 0) { $browserPercent = round($msTotal / $c1[0] * 100); } else { $browserPercent = 0; }
echo("
MSIE ±âŸ |
|
$msTotal_ |
$browserPercent% |
");
}
if($i == 4) {
$nsTotal = $nsTotal - $c2[0];
$nsTotal_ = number_format($nsTotal);
if($c1[0] != 0) { $browserPercent = round($nsTotal / $c1[0] * 100); } else { $browserPercent = 0; }
echo("
Netscape/±âŸ |
|
$nsTotal_ |
$browserPercent% |
");
}
}
$bgColor = randomColor($i+1);
$etcTotal = $c1[0] - $cs1[0] - $cs2[0];
$etcTotal_ = number_format($etcTotal);
if($c1[0] != 0) { $browserPercent = round($etcTotal / $c1[0] * 100); } else { $browserPercent = 0; }
echo("
±âŸºê¶ó¿ìÀú |
|
$etcTotal_ |
$browserPercent% |
");
echo("
|
");
?>
|