title: How to insert data into database in a multiple file input?
body: <p>I have a code that lets a person upload multiple images through a form.</p>
  
  <p>Problem is, the images upload fine on to the server but not sure how to get the images to be sent into the database.</p>
  
  <p>PHP:</p>
  
  <pre><code>        else{ // No error found! Move uploaded files 
              if(move_uploaded_file($_FILES["files"]["tmp_name"][$f], $targetscreenshots.$name)) 
  
              $count++; // Number of successfully uploaded file
  
          }
  </code></pre>
  
  <p>Where do I put the following code?</p>
  
  <pre><code>        {
  mysql_query("INSERT into Colleges (`files`) VALUES ('$files')"); // inserting data if file is moved 
      echo "Your screenshots have been uploaded successfully!"
          }
  </code></pre>