note 32661 added to function.mssql-connect

From: Date: Wed, 04 Jun 2003 00:53:32 +0000
Subject: note 32661 added to function.mssql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-49677@lists.php.net to get a copy of this message
I don't see it mentioned here, but if you are using SQL Server 2000, then you should use a comma instead of a colon to specify the port, for example: $sql = mssql_connect ("192.168.1.2,1433", "username", "password") or die ("Could not connect to database: ".mssql_get_last_message()); instead of: $sql = mssql_connect ("192.168.1.2:1433", "username", "password") or die ("Could not connect to database: ".mssql_get_last_message()); ---- Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32661 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32661&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32661&report=yes

« previous php.notes (#49677) next »