title: move_uploaded_file() expects exactly 2 parameters, 1 given in
body: <pre><code>&lt;?php
  
  include("mysqlconnect.php");
  
  function GetImageExtension($imagetype)
  {
      if(empty($imagetype)) return false;
  
      switch($imagetype)
      {
          case 'image/bmp': return '.bmp';
          case 'image/gif': return '.gif';
          case 'image/jpeg': return '.jpg';
          case 'image/png': return '.png';
          default: return false;
       }
  }
  
  
  
  if (!empty($_FILES["uploadedimage"]["name"])) {
  
      $file_name=$_FILES["uploadedimage"]["name"];
      $temp_name=$_FILES["uploadedimage"]["tmp_name"];
      $imgtype=$_FILES["uploadedimage"]["type"];
      $ext= GetImageExtension($imgtype);
      $imagename=date("d-m-Y")."-".time().$ext;
      $target_path = "img/".$imagename;
  
  
      if(move_uploaded_file($temp_name)) {
  
          $query_upload="INSERT INTO test_image ('id' ,'image', 'image_path',     'submission_date') VALUES ('".$target_path."','".date("Y-m-d")."')";
  
          mysqli_query($query_upload) or die("error in $query_upload == ----&gt; ".mysqli_error());  
  
      }else{
  
          exit("Error While uploading image on the server");
      } 
  
  }
  
  ?&gt;
  </code></pre>
  
  <blockquote>
    <p>Warning: move_uploaded_file() expects exactly 2 parameters, 1 given in /home/u957762221/public_html/saveimage.php on line 29</p>
  </blockquote>
  
  <p>This code throws an Error when attempting to upload an image to the server</p>