title: PHP code not displaying multiple images when uploaded
body: <p>I have converted this code from a single image upload and have tried to allow it to upload multiple images but it only displays one image when the form is submitted.    </p>
  
  <pre><code>foreach($_FILES["images"]["error"] as $key=&gt;$tmp_name){
      $temp = $_FILES["images"]["tmp_name"][$key];
      //$fileName = $_FILES["images"]["fileName"][$img];
      $fileName = $pdo-&gt;lastInsertId() . '.jpg';
  
      if(empty($temp))
      {
          break;
      }
      move_uploaded_file($temp, '../images/cars/' . $fileName);
  }
  </code></pre>