title: CLOSED – html form not uploading
body: <p>The data in the filled form are not uploaded to the database. If I remove the image column in the "insert into"-part then it works. So there's probably my error. There are no error messages.</p>
  
  <pre><code>elseif ($_GET["action"] == "save") {
  
       $imagepath = 'https://myurl.com/uploads/' . $_FILES['image']['name'];
  
       if (!empty($author) &amp;&amp; !empty($title) &amp;&amp; !empty($text)) {
          include_once("userdata.php");
          try {
  
            $db = new PDO($dsn, $dbuser, $dbpass);
            $query = $db-&gt;prepare(
              "INSERT INTO posts (author, title, text, date, image) VALUES(:author, :title, :text, NOW()), $imagepath)");
            $query-&gt;execute(array("author" =&gt; $author, "title" =&gt; $title, "text" =&gt; $text));
            $db = null;
           }
       }
  }
  </code></pre>