title: mysqli_query() error logging
body: <p>I have a mysqli_query that goes like this:</p>
  
  <pre><code>$result = mysqli_query($db, "INSERT INTO device(`Identifier`, `IsAllowedToPost`)
  VALUES('ABC123', 0)") or die(error_log(mysqli_error($db), 3, "php_error.log"));
  </code></pre>
  
  <p>It does not work and the logs either tells me "1", "0" or nothing depending on which method I try to log the error with. How can I get a better error message to log in my file? I have no idea what 0 or 1 means.</p>
  
  <p>The current code gives me no error message at all in my file and the test data does not get stored in the database.</p>