title: PHP MySQLi INSERT not working, no errors
body: <p>Different from <a href="https://stackoverflow.com/questions/2677575/php-mysqli-insert-not-working-but-not-giving-any-errors">this question</a>, but similar in that I don't get an error when adding information to my database.</p>
  
  <pre><code>$sql = "INSERT INTO 'nlcc_ver1'.'tUsers' ('userID', 'userName', 'userPassword', 'userHash',
  'user_first_name', 'user_last_name', 'user_corps', 'is_admin', 'is_trg', 'is_sup', 'is_co')
  VALUES (NULL, '" . $userName . "', '" . $hash . "', '" . $salt . "', '" . $f_name . "', '" .
  $l_name . "', '" . $corps . "', '" . $admin . "', '" . $trg . "', '" . $sup . "', '" . $co . "')";
  $hostname_Database = "localhost";
  $database_Database = "nlcc_ver1";
  $username_Database = "root";
  $password_Database = "";
  $mysqli = new mysqli($hostname_Database, $username_Database, $password_Database, $database_Database); 
  if (mysqli_connect_errno()) {
  printf("Connect failed: %s\n", mysqli_connect_error());
  exit();
  }
  $result = $mysqli_query($mysqli, $sql);
  echo "Query run. Inserted UserID " . mysqli_insert_id($mysqli) . "&lt;br /&gt;";
  </code></pre>
  
  <p>Line breaks inserted to avoid sideways scrolling... It says on the web page that mysqli_insert_id($mysqli) is 0, and nothing is added to the table on my database. I do not see an error connecting to the database appearing, and MySQL is running on my server, and phpinfo() shows both the MySQL and MySQLI extension loaded. This is just a development machine, so don't worry about the security (i.e. no password). I have tried googling the problem, but am not finding too much. I don't know about object oriented PHP programming with ->, I am used to using _. Is this method still supported?</p>