title: Query somehow not getting through to my database
body: <p>I'm currently working on a CMS-system for school where all of the information comes out of a form, and I ran into a problem. All of the sudden, my 'insert posts' function doesn't work anymore and I have no idea why. I will provide all the necessary code below this text. Thanks in advance for helping! :)</p>
  
  <p>conn.php (for connecting to the database)</p>
  
  <pre><code>&lt;?php
  session_start();
  
  if(!isset($_SESSION["loggedin"]))
  {
      $_SESSION["loggedin"] = "false";
  }
  
      $servername = "localhost";
      $username = "root";
      $password = "";
      $database = "cms";
  
      define('BASE_URL', 'http://localhost/cms');
  
  
  $conn = new mysqli($servername, $username, $password, $database);
  
  if($conn-&gt;connect_error) 
  {
      die("Error: " . $conn-&gt;connect_error);
  } 
  </code></pre>
  
  <p>newpost.php (for inserting posts into the database)</p>
  
  <pre><code>&lt;?php
  
  require 'conn.php';
  
  if($_SESSION["loggedin"] == "true"){}
  
  else 
  {
      header('Location: ' . BASE_URL . '/login.php');
  }
  
  if(isset($_POST['save'])){
  
              $title = $_POST['title'];
              $description = $_POST['description'];
              $text = $_POST['text'];
              $course = $_POST['course'];
  
              $insert = $conn-&gt;prepare("
                  INSERT INTO posts (title, description, text, course)
                  VALUES (:title, :description, :text, :course)
              ");
  
              $insert-&gt;execute([
                  'title' =&gt; $title, 'description' =&gt; $description, 'text' =&gt; $text, 'course' =&gt; $course 
              ]);
  
              header('Location: ' . BASE_URL . '/list.php');  
  }
  ?&gt;
  
  &lt;div class="page"&gt;
  
  &lt;h1&gt;Add project&lt;/h1&gt;
  &lt;form method="POST" action="list.php"&gt; 
  &lt;label id="first"&gt;Title:&lt;/label&gt;&lt;br/&gt;
  &lt;input type="text" name="title"&gt;&lt;br/&gt;
  
  &lt;label id="first"&gt;Description:&lt;/label&gt;&lt;br/&gt;
  &lt;textarea rows="5" cols="75" type="text" name="description"&gt;&lt;/textarea&gt;&lt;br/&gt;
  
  &lt;label id="first"&gt;Body:&lt;/label&gt;&lt;br/&gt;
  &lt;textarea rows="10" cols="75" type="text" name="text"&gt;&lt;/textarea&gt;&lt;br/&gt;
  
  &lt;label id="first"&gt;Vak (DED/SCO/UXU/PTM):&lt;/label&gt;&lt;br/&gt;
  &lt;select name="course"&gt;
      &lt;option value="DED"&gt;DED&lt;/option&gt;
      &lt;option value="SCO"&gt;SCO&lt;/option&gt;
      &lt;option value="UXU"&gt;UXU&lt;/option&gt;
      &lt;option value="PTM"&gt;PTM&lt;/option&gt;
  &lt;/select&gt;&lt;br/&gt;
  &lt;button type="submit" name="save"&gt;Opslaan&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p></p>