[nycphp-talk] PHP and MSSQL 7
nestorflorez at earthlink.net
Thu Jan 6 14:37:32 EST 2005
That is what I use to access my MSSQL databases from a W2K machine here at work.
I do know that I have the MSSQL client install on my developing machine and MYODBC.
This is my in my include file:
$hostname = "10.5.0.200,1433";
$username = "user";
$password = "pwd";
$dbName = "dbname";
if($conn = mssql_connect($hostname,$username,$password))
die("DATABASE FAILED TO RESPOND.");
Someone mentioned that if you are on a Linux machine you use the ':".
The application that I have written (PHP/MSSQL) allows students, parents and teachers to access student
scholastic information vi the internet.
From: Joseph Crawford <codebowl at gmail.com>
Sent: Jan 6, 2005 11:06 AM
To: NYPHP Talk <talk at lists.nyphp.org>
Subject: Re: [nycphp-talk] PHP and MSSQL 7
when i try to use your method this is what i recieve
Warning: mssql_connect() [function.mssql-connect]: Unable to connect
to server: 184.108.40.206,1433 in /htdocs/test/default.php on line 8
DATABASE FAILED TO RESPOND.
Joseph Crawford Jr.
codebowl at gmail.com
New York PHP Talk
Supporting AMP Technology (Apache/MySQL/PHP)
More information about the talk