Hi, I installed PHP4 and MSSQL server (local server) under Win200, the function mssql_connect seems to work but It says "unable to connect to server: localhost". What I did wrong, please help.
Below is just a few lines to test the connection. I have check the login user account under SQL Server Manager and the acount name and password are correct.
Any help would be very appreciated. Thanks alot.
<?
$host = "localhost";
$user = "sa";
$pass = "aaa";
$con = mssql_pconnect($host, $user, $pass);
echo $con;
?>