Cannot connect to database
Posted: Wed Jun 03, 2009 12:25 pm
I am trying to connect to an mssql database and am getting the following error.
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: nagual.homelinux.net in /var/www/test.php on line 73
I have been give the following connection string to use, but I may not be using it correctly.
nagual.homelinux.net\jv_dwm,400010
Here is my code.
Thanks in advance for any help.
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: nagual.homelinux.net in /var/www/test.php on line 73
I have been give the following connection string to use, but I may not be using it correctly.
nagual.homelinux.net\jv_dwm,400010
Here is my code.
Code: Select all
<?php
error_reporting(E_ALL);
$dbuser='username';
$dbname='database name';
$dbpass='password';
$server='nagual.homelinux.net\jv_dwm:400010';
$connect = mssql_connect($server, $dbuser, $dbpass);
mssql_min_message_severity(10);
?>