title: file store in mysql database
body: <p>I am trying to store <code>pdf</code> files in the <code>mysql</code> database. But I am getting some errors.</p>
  
  <p>This is my html --</p>
  
  <pre><code>&lt;input type="file" class="form-control" id="content" name="content" accept=".pdf"&gt;
  </code></pre>
  
  <p>this is my PHP code --</p>
  
  <pre><code>$contents = file_get_contents($_FILES['content']);
  </code></pre>
  
  <p>But I am always getting this error ---</p>
  
  <blockquote>
    <p>Notice:  Undefined index: content in <strong>$contents =
    file_get_contents($_FILES['content']);</strong></p>
    
    <p>Warning: file_get_contents(): Filename cannot be empty in  <strong>$contents =
    file_get_contents($_FILES['content']);</strong></p>
  </blockquote>
  
  <p>what am I doing wrong, How can I fix this problem.</p>