I just deployed my site in an intermediate environment and received the following error:
Fatal error: Class 'mysqli' not found in D:\ClientSites\baileyboiler.com\www\new\php\db.php on line 11
At first, I suggested that MySQLI was simply not installed, but the start phpinfo()shows the following:

It seems to me that MySQLI is installed (although I could read it incorrectly). What should I do?
the code
class DB
{
public static function GetConnection()
{
return new mysqli(DBHOST, DBUSER, DBPASSWORD, DEFAULTDATABASE);
}
}
(line 11 is this return new mysql(...);)
Update
I added extension=php_mysqli.dllto my php.ini located in /Windows/php.ini(according to phpinfo()this one that loads):
Loaded Configuration File C:\WINDOWS\php.ini
But the error persists. I know that mysqli.dll exists in C:\php\ext- because I see the file. Now what?
source
share