title: PHP, MySQL insert error
body: <p>I have form for adding articles. I have 6 things (title,date,author,keywors,content,image) what I want to save to my database in localhost. But if I click on submit button in my database appear only 3 of them (title, date, image) but other nothing.</p>
  
  <p>Any ideas how to solve it?</p>
  
  <p>Here code for insert_post.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  &lt;title&gt;APK Market&lt;/title&gt;
  &lt;link rel="stylesheet" type="text/css" href="../style/style.css"&gt;
  &lt;link href="../bootstrap/css/bootstrap.css" rel="stylesheet" media="screen"&gt;
  &lt;script src="../bootstrap/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="../bootstrap/js/bootstrap.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;?php
  include("../includes/connect.php");
  
  if(isset($_POST['submit']))
  { 
  $post_date = date('y-m-d');
  $post_title = $_POST['title'];
  $post_author = $_POST['author'];
  $post_keywords = $_POST['keywords'];
  $post_image = $_FILES['image']['name'];
  $image_tmp = $_FILES['image']['tmp_name'];
  $post_content = $_POST['content'];
  
  if($post_title=="" or $post_author="" or $post_keywords="" or $post_content="")
  {
      echo"&lt;script&gt;alert('any field is empty')&lt;/script&gt;";
      exit();
  }
  else 
  move_uploaded_file($image_tmp,"../uploaded_images/$post_image");
  $insert_query = "insert into posts                (post_title,post_date,post_author,post_image,post_keywords,post_content) values   ('$post_title','$post_date','$post_author','$post_image','$post_keywords','$post_content')"        ;
  
      }
    ?&gt;
    &lt;form method="post" action="insert_post.php" enctype="multipart/form-data"&gt;
  
   &lt;div class="new_post"&gt;
  &lt;div class="headtitle"&gt;Insert new post&lt;/div&gt;
    &lt;div class="new_title"&gt;
    &lt;p&gt;New title&lt;/p&gt;
    &lt;input type="text" name="title"&gt;
    &lt;/div&gt;
   &lt;div class="new_author"&gt;
  &lt;p&gt;Author&lt;/p&gt;
  &lt;input type="text" name="author"&gt;
  &lt;/div&gt;
  &lt;div class="new_keywords"&gt;
  &lt;p&gt;Keywords&lt;/p&gt;
  &lt;input type="text" name="keywords"&gt;
   &lt;/div&gt;
   &lt;div class="new_image"&gt;
  &lt;p&gt;Image&lt;/p&gt;
  &lt;input type="file" name="image"&gt;
   &lt;/div&gt;
   &lt;div class="new_content"&gt;
  &lt;textarea name="content" cols="20" rows="8"&gt;&lt;/textarea&gt;
   &lt;/div&gt;
   &lt;div class="submit"&gt;
  &lt;input type="submit" name="submit" value="OK"&gt;
   &lt;/div&gt;
   &lt;/div&gt;
   &lt;/form&gt;
    &lt;script src="https://code.jquery.com/jquery.js"&gt;&lt;/script&gt;
   &lt;script src="../bootstrap/js/bootstrap.js"&gt;&lt;/script&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  
   &lt;?php
   if(mysql_query($insert_query))
  {
      echo "&lt;center&gt;&lt;h1&gt;Post published seccesfuly!&lt;/h1&gt;&lt;/center&gt;";
  }
   ?&gt;
  </code></pre>