Can't connect to MS SQL

From: Date: Tue, 31 Jul 2001 00:57:55 +0000
Subject: Can't connect to MS SQL
Groups: php.db 
Request: Send a blank email to php-db+get-10922@lists.php.net to get a copy of this message
I have PHP running on Apache for win32. The mssql module is enabled. I am trying to connect to a database with the following code. <?php $hostname = "192.168.1.1:1433"; $username = "test"; $password = "smiley"; $dbName = "meyedev"; $dbc = mssql_connect($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND."); mssql_select_db($dbName) or DIE("Table unavailable"); mssql_close($dbName); ?> However I get the following error. Warning: MS SQL: Unable to connect to server: 192.168.1.1:1433 in c:\program files\apache group\apache\htdocs\meyedev\connect.php4 on line 11 DATABASE FAILED TO RESPOND. What am I doing wrong? Adam

« previous php.db (#10922) next »