title: problem with uploading the images with php file upload
body: <p>hi guys i am uploading the images  using the  @PhP file upload Method @ If i upload 10 Images at a time (Each Images is 2000 /3000 dimension). then the on click save function is not working. if i upload 5 images or less than five images then its working fine wats wrong with my coding i just include my php code with this post <code>&lt;input value="Save" type="submit" name="SubSave" id="SubSave" onClick="return changes();"&gt;</code></p>
  
  <pre><code> if($_POST['SubSave'] == "Save"){
      $aid = $_GET['rid'];
   $updcount = $_POST['theValue'];
  
  
  if($_SESSION["almgtype"]==1 || (GetUserNoPhoto($_SESSION["almgid"]))&gt;(GetTotalPhotoCount1($_SESSION["almgid"],$aid))) {
  
  
    $uid = $_SESSION["almgid"];
  
   for($k=1;$k&lt;=$updcount;$k++) { 
          //echo $k;
     echo $_FILES["uploadfile"]["type"];
  
  if($_FILES["uploadfile".$k]["name"]!="") {
  
  if(($_FILES["uploadfile".$k]["type"] == "image/gif") || ($_FILES["uploadfile".$k]["type"] == "image/jpeg")|| ($_FILES["uploadfile".$k]["type"] == "image/pjpeg") || ($_FILES["uploadfile".$k]["type"] == "image/png")) {
  
   if ($_FILES["uploadfile".$k]["error"] &gt; 0)
    {
    echo "Error: " . $_FILES["uploadfile".$k]["error"] . "&lt;br /&gt;";
    }
  else
    {  
         move_uploaded_file($_FILES["uploadfile".$k]["tmp_name"],
        "photoalbum/" . $_FILES["uploadfile".$k]["name"]);
        $uploadfile =  "photoalbum/" . $_FILES["uploadfile".$k]["name"];
    } 
    $path  = $uploadfile;
    $checklist = "select * from amt_photos1 where aid = '".trim($aid)."' and uid = '".trim($uid)."' and path = '".trim($path)."'";
    $chkresult  = mysql_query($checklist);
    if(mysql_num_rows($chkresult) == 0) {
    $i = 0;
    $path =$uploadfile;
    $result = "insert into amt_photos1 set uid = '".trim($uid)."',
                                       aid = '".trim($aid)."',
                                       path = '".trim($path)."',
                                       status = '0',
                                       createdby = '".$_SESSION["almgid"]."',
                                       createddate = now()";
  
    $rowlist = mysql_query($result) or die("Error:(".mysql_error().")".mysql_error());
  
  
                  } 
                  /**********************  if file already exist means ******************************************/
                  else {
                  $err= "The Uploaded file name ".$path." Is already exisit in the Album. Rename It or try to add Any other Photos";
  
                      }
                  /**********************  if file already exist means ******************************************/
                  $path ="";
                  $uploadfile = "";
                  $i  = "";
                  }  // file extention
                       else {
          $err= "Unable To Upload The File Please Check The File Extention.Try Again Later";
       }
  
                  }
                  }
                  }
  
  
  
                  } // if save close
  </code></pre>