title: How to upload/store multiple images in mysql database in php
body: <p>Here I'm making a form in which user can upload multiple images</p>
  
  <p>HTML Code below</p>
  
  <p><code>&lt;input type='file' name='attachPhoto1' multiple /&gt;</code></p>
  
  <p>PHP Code below</p>
  
  <pre><code>        $tmp_file = $_FILES['attachPhoto1']['tmp_name'];
          $target_file = basename($_FILES['attachPhoto1']['name']);
          $upload_dir = "userUploads";
          move_uploaded_file($tmp_file,$upload_dir."/".$target_file);
  </code></pre>
  
  <p>But when I upload more than one image, then only one image get uploaded into <code>userUploads</code> folder. So please help me to solve this problem.</p>