Connection problem MSSQL2005

Hi!
I trying connect to mssql2005 express edition from my code in Visual Studio 2005.
But I get error
Unable to connect to server: localhost in D:\Work\Project\PHP\WM9\WM9\index.php on line 3
Code:


<?php

$cnn = mssql_connect('localhost','user','password');
if(!$cnn)
{ echo("<P>MSSQL Server is not connected!</P>");
return false;
}

Connection parameters is valid! What problem is there ?
Thanks!

Comments

    Additional

    I'm trying connect to local MySQL database.
    It does not work!
    Result is fail too :(((
    I think I have incorrect setting in my IDE VS2005.
    But I don't know what

    this is the solution to connect to mysql

    visit this post

    http://www.jcxsoftware.com/jcx/node/1446

    Use Php5
    On September 4th, 2006 webmaster said:

    Select the Php5 runtime configuration and try again. Go to the solution node in the solution explorer and select Php5 in the platform selection box in the toolbar.

    Let me know if that works for you.