mysqli not found - problem

0 Szymon K. · June 16, 2014
Hi, I've just watched your tutorial ("> and now I'm trying to use mysql base from php code. But when I load php file in my web browser an error appears: 
Fatal error: Class 'mysqli' not found in C:\Apache\htdocs\Folder\ name.php on line 4  (this line looks like that $abc = new mysqli('localhost', 'root', 'password', 'base');)
I uncommented these lines in php.ini-development:
but it didn't help. Could you help me to fix it, please?

Post a Reply


Oldest  Newest  Rating
-2 Szymon K. · June 17, 2014
OK, I found solution. Here it is, if someone has the same problem:
1. In php folder find file named "php.ini-development" and change name of it to "php.ini"
2. Edit this file. Find lines with extensions and uncomment (remove semi-colon) this line: extension=php_mysqli.dll
3. In the same file find line ; extension_dir = "./" , uncomment it and change to extension_dir = "C:\php\ext" (or other path)
0 AVERY HORTON · April 25, 2015
Thank you Szymon K. 

Your solution help me.
  • 1

SQL & Databases


Everything SQL and Databases related in here!

Bucky Roberts Administrator