Cannot load mysqli extension

I have just got a new computer with Windows 7 and reinstalled MySQL, Apache and PHP.

When I try to run my applications I get the following error:

Call to undefined function mysqli_connect()

When I try to run phpMyAdmin, I get the following error:

Cannot load mysqli extension.

In my php.ini file, I have both extension_dir = “C:\PHP\ext” and extension=php_mysqli.dll and the file is in the directory.

Any suggestions as to what is causing the problem?

On my previous computer, I did the same setup in Windows XP and it worked perfectly!

Great - thank you very much! I needed to add C:\PHP to the path system variable. I don’t remember doing that when I installed on XP, but guess I must have…

Check out the section “Installation on Windows Systems” on this page.

Does that solve your problem?