Reply to problem in create thumb from image and save in database

problem in create thumb from image and save in database new!
by Ethar, 10 years, 5 months ago
hi
i try to take thumb image from original image
i want to take thum and keep the original image
the code used
$foo = new Upload($_FILES['mhna_pic']);
$fooThumb=$foo;
$fooThumb->file_new_name_body="image_resized";
$fooThumb->image_resize=true;
$fooThumb->image_convert=gif;
$fooThumb->image_x=90;
$fooThumb->image_y=105;
$foo2 = new Upload($_FILES['mhna_pic2']);
if ($foo or $foo2 or $fooThumb->uploaded) {
  $foo->Process('ups/');
  $fooThumb->Process('ups/');
  $foo2->Process('ups/');
  if ($foo or $foo2 or $fooThumb->processed) {
    $namei=$foo->file_dst_name;
    $nameiThumb=$fooThumb->file_dst_name;
as you see i use $nameiThumb to take copy from $foo this code work successfully in crop image but when store in name in database not work but save $foo name instead $nameiThumb
plz help me how to save $nameiThumb
$namei=$foo->file_dst_name;
$nameiThumb=$fooThumb->file_dst_name;
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important