mam skrypt, który teoretycznie nie wyrzuca mi żadnych błędów i możliwe, że powinien działać prawidłowo (możliwe dlatego, że juz sama nie wiem

<?php $file=$rekord['nazwa']; $new_w = 250; $new_h = 250; if ($old_x > $old_y) { $thumb_w=$new_w; $thumb_h=$old_y*($new_h/$old_x); } if ($old_x < $old_y) { $thumb_w=$old_x*($new_w/$old_y); $thumb_h=$new_h; } if ($old_x == $old_y) { $thumb_w=$new_w; $thumb_h=$new_h; } $th = ImageCreateTrueColor($thumb_w, $thumb_h); imagecopyresampled($th, $file, 0, 0, 0, 0, $thumb_w, $thumb_h, $old_x, $old_y); imagejpeg($th, 'min/'.$rekord['id'].'min.jpg',80); <hr width='50%' align='center'><br> <P><img src='min/".$rekord['id']."min.jpg'</P>"; } else { }