title: MySQLi is not working , no errors , no inserted info
body: <p>I've been doing all people told me to make it works , but there is no errors and no inserted rows:</p>
  
  <p>Any idea?</p>
  
  <pre><code>private $db;
  
  // Constructor - open DB connection
  function __construct() 
  {
      $this-&gt;db = new mysqli('localhost', 'root', '', 'sampleinyoudb');
      $this-&gt;db-&gt;autocommit(FALSE);
  
      if (mysqli_connect_errno()) 
      {
          sendResponse(500, "Could not connect to the database!");
          exit();
      }
  }
  
  // Destructor - close DB connection
  function __destruct() 
  {
      $this-&gt;db-&gt;close();
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>        if($stmt = $this-&gt;db-&gt;prepare("INSERT INTO Users (id,email) VALUES (?, ?)"))
          {
              $test1 = 1; //Empty
              $test2 = 'asdasd@gmail.com'; //Empty
              $stmt-&gt;bind_param("is", $test1, $test2);
              $stmt-&gt;execute();   
              if ( false===$stmt ) 
              {
                die('execute() failed: ' . htmlspecialchars($mysqli-&gt;error));
              }               
              $stmt -&gt; close();
          }
          else
          {
              printf("Prepared Statement Error: %s\n", $this-&gt;db-&gt;error);
          }
          echo 'Any Errors: '.$this-&gt;db-&gt;error.PHP_EOL;
  </code></pre>