¿äÀϺ° |
HIT |
¿äÀϺ° Á¢¼Ó Åë°è ±×·¡ÇÁ |
// ³âµµÀÇ ÃÑ Ä«¿îÆ® ÀúÀå -> $total_month[$i], ³âµµ Ä«¿îÆ®À² ÀúÀå -> $per_month[$i]
$week = array('ÀÏ¿äÀÏ','¿ù¿äÀÏ','È¿äÀÏ','¼ö¿äÀÏ','¸ñ¿äÀÏ','±Ý¿äÀÏ','Åä¿äÀÏ');
for($i=0;$i<7;$i++){
$scale = 4.5;
$result = mysql_query("select SUM(today) from webin_static where id='$id' and week=$i");
$row = mysql_fetch_array($result) or die(mysql_error());
# $total_month[$i] = $row[0];
if($row[0]==""){ $row[0] = 0;}else{$num_static++;}
$per_month[$i] = round(($row[0]/$total_count)*100);
$width = $per_month[$i]*$scale;
echo "
${week[$i]} |
$row[0] |
${per_month[$i]}% |
";
} //for($i=0;$i<$num_month;$i++){
mysql_free_result($result);
$avr_count = $total_count / $num_static ;
$per_total = round(($avr_count/$total_count)*100);
$avr_width = $per_total*$scale;
$avr_count = substr($avr_count,0,5);
echo "
Æò±Õ |
$avr_count |
|
";
?>
|
|
|
|