okay ... here is what I ended up with on modify the script. I got a parse error. I am not sure if I made the changes correly. I am not quite understanding real well today. My filed name is 'photo'
if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "form1")) {
$tempname = $_FILES[$i]['tmp_name'];
$orig_dimensions = getimagesize($tempname);
if($orig_dimensions == false || $orig_dimensions[2] != 2){
die(Error_Image_Type);
}
$orig_width = $orig_dimensions[0];
$orig_height = $orig_dimensions[1];
$image_is_tall = ($orig_height>=$orig_width);
$orig_image = imagecreatefromjpeg($tempname);
$sheight = 75;
$swidth = ceil($orig_width*$sheight/$orig_height);
if($image_is_tall){
$t = $sheight;
$sheight = $swidth;
$swidth = $t;
}
$photo = imagecreatetruecolor($swidth, $sheight);
if(imagecopyresampled($photo, $orig_image, 0, 0, 0, 0, $swidth, $sheight, $orig_width, $orig_height) === FALSE){
echo Error_Create_Thumb;
}
else{
$new_small = "/hsphere/local/home/chulamik/granbylionsclub.com/uploads".Thumbs_Path."/".$nxtfile.".jpg";
if(@imagejpeg($photo, $new_small, 100) === false){
$small_created = "<font style=\"color: #f00;\"><b>Missing.</b> Failed to create.</font>";
$small_create = false;
echo Error_Create_New_Thumb;
}
else{
$thumb = "http://www.granbylionsclub.com/uploads".$_dir['Year'].'/'.$category.'/'.$evt."/thumbs/".$nxtfile.".jpg";
$small_created = "<font style=\"color: #090;\">Created successfully.</font>";
$small_create = true;
echo New_Thumb_Success;
}
$insertSQL = sprintf("INSERT INTO photos (photosID, photo_title, photo, photo_description, photo_display, eventsID, articlesID, main_pagesID, gallery) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($HTTP_POST_VARS['photosID'], "int"),
GetSQLValueString($HTTP_POST_VARS['photo_title'], "text"),
GetSQLValueString($photo_url, "text"),
GetSQLValueString($HTTP_POST_VARS['photo_description'], "text"),
GetSQLValueString($HTTP_POST_VARS['photo_display'], "text"),
GetSQLValueString($HTTP_POST_VARS['eventsID'], "text"),
GetSQLValueString($HTTP_POST_VARS['articlesID'], "text"),
GetSQLValueString($HTTP_POST_VARS['main_pagesID'], "text"),
GetSQLValueString($HTTP_POST_VARS['gallery'], "text"));
mysql_select_db($database_localhost, $localhost);
$Result1 = mysql_query($insertSQL, $localhost) or die(mysql_error());
}