i am getting the aboe error in the code given below

<html><head>
<title>MySQL Server Information</title>
</head><body>
<h1>MySQL Database Server Information</h1>
<?php
$DBConnect = mysqli_connect('localhost', 'root', 'mrityunjay');
echo "<p>MySQL client version: "
. mysqli_get_client_info() . "</p>";
echo "<p>MySQL connection: "
. mysqli_get_host_info($DBConnect) . "</p>";
echo "<p>MySQL protocol version: "
. mysqli_get_proto_info($DBConnect) . "</p>";
echo "<p>MySQL server version: "
. mysqli_get_server_info($DBConnect) . "</p>";
mysqli_close($DBConnect);
?>
</body>
</html>

even though in C:\php\php.ini has
extension=php_mysql.dll uncommented

Is php_mysql.dll included in your PATH? If not, you should find the file and include the full path of the file in php.ini

Niek

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.