Connection Warnings

Hello Guys.

Pls Can anyone help me solve this problem?

I want to connect PHP with MYSQL and i used this code;

<?php
$link= mysqli_connect(‘localhost’,‘root’,‘98’);
if (!$link) { die(“no connection:”. mysql_error());
}
?>
<html>
<head> <title> numbers </title>
<body> Lets Go to SitePoint
</body>
</html>

But i keep getting this warning:

Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50145 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\phpcodes\cons.php on line 2
Lets Go to SitePoint

It appears that a connection was made but why am i having the warning and whats the solution.

Thx.

HI
There is some suggestion in this link:

I am now using vertrigoserv…it seems to be good for windows OS including window 7. It is a all in one installation.

Cheers.

There have been some complaints about xampp and wamp on windows 7.

I tried it myself and could not sort out the problem with phpmyadmin.

My conclusion is that it will work after some adjustments.

When i tried vertrigoserv…it worked immediately after installation.

Thanks for the response.

Yeah,I did the manual installation.

The procedure was not easy to perform…i doubt if i will like to do it again except if i encounter a bigger problem.

I believe that if i turn the error display off(after development)…the whole “warning” will not be a problem again.

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\phpcodes\ ry.php on line 2

That means the mysql extension is not loaded. Did you change the configuration in your php.ini to give the right extension path? Also you need to set the environment path in windows from control panel.

NB: I use windows 7 and it does not seem to be very compactible with xampp and wamp what other options do i have?

Though I don’t use WAMP or XAMPP or anything, but as far as I know from my friends, they are using WAMP in Windows 7 pretty well.

Can someone pls help me to check the code below:

<?php
$con = mysql_connect(“localhost”, “root”, “98”);
if (!$con)
{
die('Could not connect: ’ . mysqli_error());
}

$db_selected = mysql_select_db(“bab”,$con);
$sql = “SELECT * FROM them”;
$result = mysql_query($sql,$con);
print_r(mysql_fetch_array($result));
mysql_close($con);
?>

It keeps giving the error:

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\phpcodes\ ry.php on line 2

NB: I use windows 7 and it does not seem to be very compactible with xampp and wamp what other options do i have?

Thanks.

I’m assuming you manually installed PHP? Try removing and reinstalling the latest version of PHP.