$total_month[$i], ³âµµ Ä«¿îÆ®À² ÀúÀå -> $per_month[$i] for($i=1;$i<13;$i++){ $scale = 4.5; if(!$year and !$month){ $result = mysql_query("select SUM(today) from webin_static where id='$id' and month=$i"); }else{ $result = mysql_query("select SUM(today) from webin_static where id='$id' and year=$year and month=$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 " "; } //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 " "; ?>
¿ùº° HIT ¿ùº° Á¢¼Ó Åë°è ±×·¡ÇÁ
${i}¿ù $row[0] ${per_month[$i]}%
Æò±Õ $avr_count
 






copyleft¨Ïwebin webin.sarang.net