title: PHP SQL Error for INSERT FUNCTION
body: <p>I am using using <code>INSERT</code> function in <code>PHP</code> to insert data into a table. 
  Here's the code given below:
  Note, when I execute the code, i get an <strong>error</strong>:</p>
  
  <blockquote>
    <p>Error: INSERT INTO tbl_test (name) VALUES​​ ('222') You have an error
    in your SQL syntax; check the manual that corresponds to your MariaDB
    server version for the right syntax to use near 'VALUES​​ ('222')' at
    line 1</p>
  </blockquote>
  
  <pre><code>&lt;?php
      $servername = "localhost";
      $username = "root";
      $passwords = "";
      $dbname = "cmg_log";
  
      //open connection
      $con = mysqli_connect ($servername, $username, $passwords, $dbname);
      if (!$con){
          die("Connection fail. ".mysqli_connect_error());
      }
  
      //insert into database
      $query="INSERT INTO tbl_test (name) VALUES​​ ('222')";
      if (mysqli_query($con, $query)){
          echo "Successful";
      }
      else{
          echo "Error: " .$query ."&lt;br&gt;" . mysqli_error($con);
      }
  ?&gt;
  </code></pre>