Problem related to PHP

HELLO
my name is Ali im new to this forum i have got to chapter four of the book name “BUILD YOUR OWN DATABASE DRIVEN WEB SITE USING PHP & MYSQL BY KEVIN YANK 4TH EDITION” :mad:

i got this error in first line

Warning 1: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50150 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 2

And " when i change the password like it say’s in book to test the error handling code is working then i got this error " warning 2 "but when i use correct password than i got only one error " warning 1 "

Warning 2: mysqli_connect() [function.mysqli-connect]: (/838860800): in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 2

unable to connect to the database server.

plz help me to solve this problem,
thanks in advance

yes its turned on.
every thing is connected but still
don’t know why this warning is shown ?

Warning 1: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50150 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 2

Warning 2: mysqli_connect() [function.mysqli-connect]: (/838860800): in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 2

Are you sure the mysqli extension is turned on in php.ini?

so which version i will install now ???

I’m using PHP 5.2.14

If you read the warning, it tells you exactly what’s wrong.

Sounds like a PHP version problem.

It’s not a problem with your version, it’s a problem with your current installation. You have different versions for your PHP executable and the mysqli extension. You need to reinstall PHP (in whatever version you like, I’d recommend the latest)