NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP and MSSQL 7

John Lacey jlacey at att.net
Mon Dec 20 16:09:32 EST 2004


Nestor Florez wrote:
> Joe,
> 
> 
> This is what I use when accessing a Mssql DB
> 
> $hostname = "192.168.0.20,1433";
> $username = "user1";
> $password = "pwd1";
> $dbName   = "mydb";

Nestor,

Should a comma "," or a colon ":" go after the IP address?  I'm 
unfamiliar with that syntax so I thought I'd ask.  I assume the 1433 is 
the port number that the mssql server waits on ala MySQL port 3306.

thanks,
John




More information about the talk mailing list