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






copyleft¨Ïwebin webin.sarang.net