title: I can't insert data into my database. Always uses the else part of the code
body: <p>The goal is to place values in a database. I can't find my error. It always takes me through the else in my code.</p>
  
  <pre><code>$sql = "INSERT INTO `contact`(`id`, `date`, `name`, `email`, `message`)
   VALUES ([0],[$datum],[$name],[$email],[$message])";
  
  if ($conn-&gt;query($sql) === TRUE)
  {?&gt; &lt;html&gt;&lt;br&gt;&lt;br&gt;&lt;a href="home.php"&gt;Back to homepage.&lt;/a&gt;&lt;/html&gt;&lt;?php;}
  else
  {?&gt;&lt;html&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;Message failed&lt;/p&gt;&lt;/html&gt;&lt;?php;}
  </code></pre>
  
  <p>I always get the page with message failed instead of back to homepage.</p>
  
  <p>I hope you can help me!</p>