title: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',,,)' at line 1
body: <p>so I am working with a database and just got this error code: </p>
  
  <blockquote>
    <p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',,,)' at line 1</p>
  </blockquote>
  
  <p>I searched on here and noticed that a lot of people have had the same problem, but I could not figure out exactly what I needed to change in my particular case.</p>
  
  <p>EDIT: Sorry, I put in the wrong version at first. Fixed now.</p>
  
  <p>The .php-file where I get this error code:</p>
  
  <pre><code>&lt;?PHP
      require_once("base.php");
      $first = $_REQUEST["First"];
      $second  = $_REQUEST["Second"];
      $third = $_REQUEST["Third"];
      $fourth = $_REQUEST["Fourth"];
      $fifth = $_REQUEST["Fifth"];
  
  
      $SQL="insert into batch(first,second,third,fourth,fifth)
  
   values($first,$second,$third,$fourth,$fifth);";
      mysql_query($SQL)or die(mysql_error());
      header("location:12345.php");
  ?&gt;
  </code></pre>
  
  <p>What is the issue here?</p>