PDA

View Full Version : MS SQL Server 2000


hangman
06-23-2004, 02:02 AM
What is the connection string to connect to SQL Server 2000 using PHP?

Will this work?
if ($dbc = @mssql_connect('localhost', 'allergyadvi','XXXXXX')) {
print '<p>Connection Successful</p>';
.......

Elementary, I know.
Gracias'

bruce
06-23-2004, 02:13 AM
localhost will definitely not work.

[b]quote:Originally posted by hangman

What is the connection string to connect to SQL Server 2000 using PHP?

Will this work?
if ($dbc = @mssql_connect('localhost', 'allergyadvi','XXXXXX')) {
print '<p>Connection Successful</p>';
.......

Elementary, I know.
Gracias'
</blockquote id="quote"></font id="quote">

polyvectorn
05-22-2005, 02:56 AM
I am having the same issue. Did you find a resolution to this?