title: There is some error in my SQL query for inserting image to MySQL database
body: <p>I have an error in my SQL query for inserting image in database of MySQL.</p>
  
  <p>When I try to save image error occur in SQL query for inserting image. The error is this</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 '2( .?/279&lt;&lt;
  </blockquote>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
      &lt;form action="http://localhost/upload.php" method="post" enctype="multipart/form-data"&gt;
      Select image to upload:
        &lt;input type="file" name="image" id="fileToUpload"&gt;
        &lt;input type="submit" value="Upload Image" name="submit"&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;?php
    mysql_connect("localhost","root","") or die("not conected");
    mysql_select_db("image") or die("not selected");
  
    $file_name=$_FILES['image']['name'];
    $myfile=file_get_contents($_FILES['image']['tmp_name']);
    $q="INSERT INTO imagee(image_id,image_name,image)
                    VALUES('','$file_name','$myfile')";
    mysql_query($q) or die(mysql_error());
  ?&gt;
  </code></pre>