while ($result = $query ->fetch_object()){ $oi = 0; $cos = ''; $input2 = str_split($result->field1); foreach($input2 as $k => $char){ $cos .= $char; if($oi >= 120 || $char === ':') { if($input2[$k+1] == ',') { $oi++; continue; } $cos .= PHP_EOL; $oi = 0; } $oi++; } $iledodac = $oi; $extra=(24*$iledodac); $Value1 = $cos; imagefilledrectangle($ob, 0, 180+$dodaj, $w, 210+$dodaj+$extra, $tlo); imagettftext($ob, $font_size-2, 0, 185, 200+$dodaj, $text_color, $font, $Value1); imagettftext($ob, $font_size-2, 0, 980, 200+$dodaj, $text_color, $font, $result->value4); imagettftext($ob, $font_size-2, 0, 1120, 200+$dodaj, $text_color, $font, $result->value5); imagerectangle($ob,0,180+$dodaj,$w-1,210+$dodaj+$extra,$text_color); $dodaj +=30; $i +=1; } $dodaj++; $i++;
ma ktoś jakiś pomysł ? Ponawiam pytanie
