New here, and new to MySQL, but not PHP. Following the book and every single search result I can find on the issue, yet still not solved on my system.
I installed Apache/PHP/MySQL individually.
Apache is up and running.(2.2.17)
PHP is up and running.(5.2.14)
MySQL is up and running. (5.1.51 Community)
I can connect to MySQL via cmd.
However when I try to connect to my database using
$link = mysqli_connect('127.0.0.1', 'root', 'x4yu8');
$output = 'Unable to connect to the database server.';
$output = 'Database connection ok.';
I get the error which is ruining my day:
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 3
PHP is using the correct php.ini file.
PHP is listing the correct path for my MySQL install.
The correct ext path is in PHP.ini.
The link to php_mysqli.dll has had the semi colon removed.
The .dll exists on my system.
I have tried copying 2 .dll's to my system32 folder.
My windows7 HOSTS file is edited correctly for localhost/127.0.0.1.
As you can see, I'm nearly out of ideas.
I have a slight feeling it may have something to do with a lib mysql file?
Any help would be gratefully received.