Sorry, I'm way behind on my email lists! No, I'm definitely using a comma rather than a colon and it works. I haven't tried a colon. Maybe they both work? Regards, Bruce >>> <trystano@xxxxxxx> 17/08/2006 10:18:00 a.m. >>> Thats mean to be localhost:9999 yeah? Tryst -----Original Message----- From: bdc@xxxxxxxxxxxxxxx To: harpreet@xxxxxxxxxxxxxxx; php-windows@xxxxxxxxxxxxx Sent: Fri, 11 Aug 2006 5.44AM Subject: Re: Localhost does not work To get mine working, I had to use 'localhost,9999', where 9999 is the port number. Regards, Bruce >>> "Harpreet" <harpreet@xxxxxxxxxxxxxxx> 11/08/2006 3:36:05 a.m. >>> $con = mssql_connect('localhost','username','password') Does not work but $con = mssql_connect($_GET["HOSTNAME"],'username','password') works fine. Please help -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php