title: MySQLi not found error
body: <p>I just deployed my website to a staging environment and am getting the following error:</p>
  
  <pre><code>Fatal error: Class 'mysqli' not found in D:\ClientSites\baileyboiler.com\www\new\php\db.php on line 11
  </code></pre>
  
  <p>At first I assumed that MySQLI was simply not installed, but running a <code>phpinfo()</code> reveals the following:</p>
  
  <p><img src="https://i.stack.imgur.com/74QbA.jpg" alt="enter image description here"> </p>
  
  <p>To me it looks like MySQLI is installed (though I could be reading this wrong). What should I do?</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>class DB
  {
      public static function GetConnection()
      {
          return new mysqli(DBHOST, DBUSER, DBPASSWORD, DEFAULTDATABASE);
      }
  }
  </code></pre>
  
  <p>(line 11 is the <code>return new mysql(...);</code>)</p>
  
  <p><strong>Update</strong></p>
  
  <p>I added <code>extension=php_mysqli.dll</code> to my php.ini located at <code>/Windows/php.ini</code> (according to <code>phpinfo()</code>, this is the one being loaded):</p>
  
  <pre><code>Loaded Configuration File   C:\WINDOWS\php.ini
  </code></pre>
  
  <p>But the error persists. I know that mysqli.dll exists at <code>C:\php\ext</code> - because I can see the file. What now?</p>