title: php Mysql INSERT INTO: can't insert anymore
body: <p>I'm writing news and inserting it in my DB, I've build the code 3 years ago and it was working well, but yet I can't insert anymore and I don't understand why:</p>
  
  <pre><code>$insert=mysqli_query($co,"INSERT INTO articles VALUES('','".addslashes(htmlentities($_POST['title']))."','".time()."','".nl2br(addslashes(htmlentities($_POST['msg'])))."')") or die("insert error: ".mysqli_error());
  </code></pre>
  
  <p>where the table articles get the structure (id : int(11) auto_increment, title : text, date : int(11), msg : text)</p>
  
  <p>When I try it I fell in the "insert error" message, but the mysqli_error() message is empty, so I tried a fake entry on phpmyadmin:</p>
  
  <pre><code>INSERT INTO articles VALUES('','testset','1396642210','FUUUUUU')
  </code></pre>
  
  <p>And I get  #1366 - Incorrect integer value: '' for column 'id' at row 1
  (but id is auto incremented ?? :/ )</p>
  
  <p>(connection and db select are ok)
  I really don't understand what is happening, I was working with this request for 2/3 years and it was working...
  Any ideas ?</p>