title: Storing and displaying images from MySQL with PHP
body: <p>How can I store a image file in MySQL with PHP by sending the image from a HTML form? I only know the MySQL and HTML part of the stuff.</p>
  
  <p>Here's the HTML form:</p>
  
  <pre><code>&lt;form method="post" enctype="multipart/form-data" action="insert_image.php"&gt;
      &lt;input type="file" name="image" /&gt;
      &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I know how to connect to the database and store normal information, but how can I parse the data correctly to store the image file to a MySQL BLOB field? And also how can I display it from MySQL?</p>
  
  <p>ps: Im using PDO to do the database connections.</p>