I need help with my code

I have follow the instruction stated in the book that I am reading and it is time for me to put my PHP and MYSQL together… after all the step this is what I got
:mad:
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 10:mad:
Bellow here is my Code:
<?php
$link = mysqli_connect(‘localhost’, ‘root’, ‘mypassword’); :mad:The line 10 is here:mad:
if (!$link)
{
$output = ‘Unable to connect to the database server.’;
include ‘output.html.php’;
exit();
}
if (!mysqli_set_charset($link, ‘utf8’))
{
$output = ‘Unable to set database connection encoding.’;
include ‘output.html.php’;
exit();
}
if (!mysqli_select_db($link, ‘ijdb’))
{
$output = ‘Unable to locate joke database.’;
include ‘output.html.php’;
exit();
}
$output = ‘Database connection established.’;
include ‘output.html.php’;
?>
</body>
</html>

In your php.ini file make sure that extension=php_mysqli.dll doesn’t have an ; in front of it.

Thank so much for the Reply… I have check the File you stated above, I have remove the ; mark… but still it has not change from doing that… What other step can I take… thanks

remember to restart the server, after the changee in php.ini

I have the same problem did you get a solution

Read this manual page carefully PHP: Mysqli Installation - Manual and as already stated, make sure you restart your server (eg Apache, no need to reboot your machine) after making a change to your php.ini file.

Hello Seniors
I have change the php.ini file as stated and the problem still remain the name… please help other Suggestion … hope to hear thank

No… I haven’t get the solution what about you??

When I Used
<?php
phpinfo();
?>
To Check at my PHP info It is does not Show MYSQL… please Does that have any thing to do with the Issue I am having now… Please I need Help… Thanks

Hello,
Thank to All that Give Hand in Helping me… What I did to solve the issue is that I copy the ““libmysql.dll”” in the Apache File For my system the path is like this
“C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin”
And This being to Work out… Thank to All the Seniors that Have Help me out… thanks

I had the same problem and had just about given up when I read this solution thank you all very much so appreciative.:slight_smile: