$total_month[$i], ³âµµ Ä«¿îÆ®À² ÀúÀå -> $per_month[$i] for($i=1;$i<32;$i++){ $scale = 4.5; if(!$year and !$month){ $query = "select SUM(today) from webin_static where id='$id' and day=$i"; }else{ $query = "select SUM(today) from webin_static where id='$id' and year=$year and month=$month and day=$i"; } $result= @mysql_query($query) or die("$query
".mysql_error()); $row = @mysql_fetch_array($result) or die(mysql_error()); # $total_month[$i] = $row[0]; if($row[0]==""){ $row[0] = 0;}else{$num_static++;} $per_day[$i] = round(($row[0]/$total_count)*100); $width = $per_day[$i]*$scale; echo " "; } //for($i=0;$i<$num_day;$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 " "; ?>
ÀϺ° HIT ÀϺ° Á¢¼Ó Åë°è ±×·¡ÇÁ
${i}ÀÏ $row[0] ${per_day[$i]}%
Æò±Õ $avr_count
 






copyleft¨Ïwebin webin.sarang.net