title: php mysql_query insert into not working
body: <pre><code>&lt;form method="post" action="updatescreen(2).php"&gt;
  Name of company:&lt;br /&gt;
  &lt;input type="text" name="artid" id="artid" size="50" /&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;input type="submit" name="Insert" id="Insert" value="Insert" /&gt;&lt;br /&gt;&lt;br /&gt;
  
  &lt;?php
  if(isset($_POST['Insert'])){
      $id = $_POST['artid'];
  
      mysql_query("INSERT INTO test (id) VALUES ('$id', )");
  }
  
  ?&gt;&lt;/form&gt;
  </code></pre>
  
  <p>The connection to the database is included so not mentioned here. The connection is working fine, that's not the problem. </p>
  
  <p>The problem is: the php code doesn't work. The php code doesn't insert the data into my database. What's wrong?</p>