I have a problem with setting up the newly downloaded copy of PHP 5.0.1, for windows, for Apache 2.0.50 to work as a module.
When I run this code:
Code: Select all
<html>
<head>
<title>PHP Test</title>
</head>
<body><?php
$link = mysql_connect("localhost", "my_user", "my_password");
/* check connection */
if (!$link) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf("Host information: %s\n", mysqli_get_host_info($link));
/* close connection */
mysql_close($link);
?>
</body>
</html>Code: Select all
PHP Fatal error: Call to undefined function mysql_connect() in above_code.php line 6.The same problem occurs for the mysqli object... I assume I did not setup the php interpreter correctly. I need help in correcting this so that I can connect to my database (which is however setup and works).
Thank you in advance for your assistance.
Bye