title: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'post' cannot be null
body: <p>I have this codes but when I try these code I am getting:</p>
  
  <blockquote>
    <p>SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'post' cannot be null
    this error.</p>
  </blockquote>
  
  <p>I could not find any solution. I tried another functions which are work they are worked but this one is not work.</p>
  
  <pre><code>?&gt;
  &lt;form method="post"&gt;
  Buraya yaz &lt;br&gt;&lt;textarea style="resize:none" name="post"&gt;&lt;/textarea&gt; &lt;br&gt;&lt;input type="submit" value="Gönder"&gt;
  &lt;/form&gt;
  
  &lt;?php 
  if(empty($_POST['post'])){
  echo 'you should fill the area.';
  exit;
  }
  if (empty($errors) === true) {
  $users-&gt;sendpost($post);
  }
  ?&gt;
  
  public function sendpost($post){
  $query  = $this-&gt;db-&gt;prepare("INSERT INTO `posts` (`post`) VALUES (?) ");
  $query-&gt;bindValue(1, $post);
  try{
  $query-&gt;execute();
  }catch(PDOException $e){
  die($e-&gt;getMessage());
  }   
  }
  </code></pre>