title: Getting HTTP Error 500.0
body: <p>My system is Windows XP SP2 and my weserver is Microsoft Webmatrix. PHP works well but when i'm trying to add db connection it gives http Error 500.0. The piece of code that issues error</p>
  
  <pre><code>$db = new MySQLi('localhost', 'my_login', 'my_pass', 'db_name');
  if ($db-&gt;connect_errno()) {
      printf("Connect failed: %s\n", $db-&gt;connect_error());
      exit();
  }
  </code></pre>
  
  <p>When i remove it the page loads fine. How can i fix it?</p>