title: SQL Syntax Error (Server version: 5.6.17 - MySQL)
body: <p><br>
  Could you guys please tell me what is missing on this code. because i get SQL Syntax Error.</p>
  
  <p>i have created table with three colums. ID is auto incriminating and Image is Blob data type</p>
  
  <p>as i think problem occurs when inserting the $image</p>
  
  <p>here is the error ------->>  "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 '�#~���I�٢7W�?Hl����:��o���:�ӏvm5V��Ό��'`V���' at line 1 " </p>
  
  <pre><code> &lt;?php
  
  if (isset($_POST["Upload"]))
   {
      include("DbConnection.php");
  
          $file  = $_FILES['image']['tmp_name'];
  
  
          if(!isset($file)) {
              echo 'Please Select a File';
          }
          else {
              $image     = file_get_contents($_FILES['image']['tmp_name']);
              $img_name  = $_FILES['image']['name'];
              $img_size  = getimagesize($_FILES['image']['tmp_name']);
  
              if ($img_size == false) 
                          {
                  echo 'it is not a image'; 
                          }
  
          else 
          {
              $query  = mysqli_query($Con, "INSERT INTO `cars_tbl` (ID,Name,Image) VALUES ('','$img_name','$image')");
                  if (!$query)
                  {
                      echo 'Error Executing Query '.mysqli_error($Con);  
                      }
                      else 
                      {
                          $last_ID = mysqli_insert_id($Con);
                          echo "Image Uploaded. &lt;p /&gt; Your Image : &lt;p /&gt; &lt;img src='get.php?ID=".$last_ID."'" ;
                          }
  
  
               }
  
                          } //else 
  } // 1st IF
  
  else
  {
      echo 'Fill the details';
  }
  ?&gt; 
  </code></pre>