Reputation: 1082
Where to start..
Now when I use this php code to connect to the server it gives me:
Can not connect because the target machine actively refused it.
php code:
<?
### Database ###
$user = "*****"; //database user
$pass = "*****"; //database password
$host = "localhost"; //database location
$db = "test"; //database name
##mysql_connect ("$host","$user","$pass");
##mysql_select_db("$db");
$dbConn = odbc_connect("$db","$user","$pass","$host") or die(odbc_errormsg());
?>
The password and username are correct but the error still remains.
Any help is appreciated!
Upvotes: 0
Views: 10010
Reputation: 2982
Have you set your datasource using administrative tools, data sources, System DSN?
if not i'm sure it won't find the database.
see this link: http://support.microsoft.com/kb/305599
Upvotes: 0