I've got Interbase Server as a SQL server and Apache for webserver running on win '98. I can make sql databases without any error message and make php scripts. But when i want to connect to sql with php script, it gives the following error message:
Warning: Can't connect to MySQL server on 'localhost' (10061) in - on line 8
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in - on line 8
I use this php script:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<head>
<title>Title here!</title>
</head>
<body>
<?php
mysql_connect("localhost","root","mypass");
mysql_select_db("phpdata");
$query = "select * from users";
$result = mysql_query($query);
print("$result");
?>
</body>