[nycphp-talk] PHP and MSSQL 7
Nestor Florez
nestorflorez at earthlink.net
Thu Jan 6 14:37:32 EST 2005
Joseph,
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))
{
}
else
{
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.
:-)
-----Original Message-----
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
Nestor,
when i try to use your method this is what i recieve
Warning: mssql_connect() [function.mssql-connect]: Unable to connect
to server: 207.76.168.21,1433 in /htdocs/test/default.php on line 8
DATABASE FAILED TO RESPOND.
--
Joseph Crawford Jr.
Codebowl Solutions
codebowl at gmail.com
_______________________________________________
New York PHP Talk
Supporting AMP Technology (Apache/MySQL/PHP)
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org
More information about the talk
mailing list