$t) { $l = $l + 1; $x = 3; $y = ($l * $lsize) + 3 - $fsize; imagestring($image,1,$x,$y,$t,$colour); if(($l * $lsize) >= $height) { break; } } imagejpeg($image,dbunescbin($attach['content']) . '.thumb'); } } }