title: How to upload picture into a database with a html form which have a type = "file"?
body: <p>I don't really know how to store my pictures in a database. The user will select a file, upload it, and cick to submit button. After it the picture should autimatically be loaded up into the database. Any trivial way to solve it? Should i use BLOB? It'd be more efficient if i could load up the picture into the server, and the sql variable would get the path of the picture. Is this implementable?</p>
  
  <pre><code>              &lt;meta charset="UTF-8"/&gt;
                &lt;form method = "post" id= "myform" name="myform" action = "&lt;?  php $_PHP_SELF ?&gt;"&gt;
                &lt;table width = "400" border = "0" cellspacing = "1" 
                   cellpadding = "2"&gt;
  
  
                      &lt;td&gt;&lt;input name = "user_name" type = "text" 
                         id = "user_name"&gt;&lt;/td&gt;
  
                    &lt;input name = "add" type = "submit" id = "add" 
                            value = "Küldés"&gt;
                   &lt;/tr&gt;
                 &lt;/form&gt;
  
  
  
                      &lt;td&gt;&lt;form action="uploadpic.php" method="POST" enctype="multipart/form-data" /&gt;
                  &lt;input type="file" name="user_image" id="user_image" /&gt;
  
                  &lt;/form&gt;
  </code></pre>