$maxday) $maxday=$array["hits"]; $summe=$summe+$array["hits"]; if($count==14){ $arrsum[]=$summe/$count; if(floor($summe/$count)>$maxsum) $maxsum=$summe/$count; $count=0; $summe=0; } $count++; } mysql_free_result($result); if($summe>0){ $count--; $arrsum[]=$summe/$count; $count=1; $summe=0; } header("Content-type:image/png"); $im = @ImageCreate (601, 321) or die ("Kann keinen neuen GD-Bild-Stream erzeugen"); $background_color = ImageColorAllocate ($im, 252, 252, 252); $color1 = ImageColorAllocate ($im, 10, 10, 252); $color2 = ImageColorAllocate ($im, 233, 5, 5); $color3 = ImageColorAllocate ($im, 0, 0, 0); $line=imageline($im, 1, 1, 1, 320, $color3); $line=imageline($im, 1, 1, 600, 1, $color3); $line=imageline($im, 1, 320, 600, 320, $color3); $line=imageline($im, 600, 1, 600, 320, $color3); if($day==1){ $max=$maxday; /* die Tageswerte in blau */ $anzahl=count($arr); for ($key=1;$key