title: MYSQL INSERT not working
body: <p>I don't understand why my MY_SQL insert isn't working.</p>
  
  <pre><code>&lt;?php
  $sub = $_POST['submit'];
  
  
  if($sub)
  {
  
  $title = $_COOKIE['newstitle'];
  $body = $_COOKIE['newsbody'];
  $sneak = $_COOKIE['newssneak'];
  $date = date("Y-d-m");
  $postedby = $_COOKIE['userlogin'];
  
  $connect = mysql_connect("localhost","admin","00904684") or die("Couldn't Connect!");
  mysql_select_db("dr") or die("Couldn't find DB.");
  
  $insert = mysql_query
  ("
  INSERT INTO news(`id`,`title`,`summary`,`body`,`date`,`postedby`)
  VALUES ('NULL','".$title."','".$sneak."','".$body."','".$date."','".$postedby."')
  ");
  mysql_close($connect);
  
  
  
  header('Location: ../index.php');
  
  
  }
  else echo (mysql_error());
  
  ?&gt;
  </code></pre>
  
  <p>My code used to work until i added a new feild "Summary" into it, ever since it hasn't worked, i know the variables are passing correctly though.</p>
  
  <p>Here is my database layout:</p>
  
  <blockquote>
    <p>id | title | summary | body | date | postedby</p>
  </blockquote>