PROBLEM MYSQL PHPSTORM
Hi everyone,
It's been an hour that iw as trying to fix this but apperently i cannot figure it out by myself and with the help of internet.
i have a php page with this code
$address = $_REQUEST["address"];
$username = $_REQUEST["username"];
$password = $_REQUEST["password"];
// Create connection
$connection = new mysqli($address, $username, $password, "VIDEOGAME");
// Check connection
if ($connection -> connect_error) {
// JUMP TO OTHER PAGE
die("CONNECTION FAILED: " . $connection -> connect_error);
}
the problem is that when i try to run the code i get an error like this
Uncaught Error: Class 'mysqli' not found in FILENAME.PHP on line LINENUMBER
PHPSTORM is connected via XAMMP PHP and i have checked the php.ini and i have the include the extension_dir and all the extension of mysql but the problem persit, how to fix it?
Please sign in to leave a comment.
Hi there,
1) Have you restarted your Apache after making such change in php.ini? Usually such changes are read only on start.
2) Please check your phpinfo(); output -- it will tell if that extension was loaded or not.