Click to See Complete Forum and Search --> : connecting to server
Hi,
I am have no clue how to connect to my database on my Microsoft SQL 2000 Server, from php. I know the built in function but I don't know how to apply it.
Is there any place I could find a tutorial how to connect?
Thanks in advance
Louie
ame12
05-02-2001, 04:40 AM
Have you tried using ODBC to connect? ODBC against SQL Server is pretty easy, fast and efficient. I would try that first.
Tutorial here:
http://php.weblogs.com/odbc
Dave
===========================================
http://badblue.com
Free small footprint web server for Windows
P2P file-sharing, PHP, wireless apps & more
===========================================
schajee
05-02-2001, 06:28 AM
Well,
If you read the "PHP + MSSQL 2000 + Win9x" then you might have guessed that I am still in the processs of connecting. As soon as I'm able to download the file Tomas told me to, I'll let everyone know how its done.
In the meantime, what you try to do is to find the php_mssql70.dll and put it in c:\php\extensions and add the line "extension=php_mssql70.dll" in the php.ini file found in c:\windows. Restart the computer and then try connecting. In short do what I'm doing right now :)
Write a simple php code which tries to connect to the database and displays a "Success" message or dies if it can't. If everything is right then the "Success" should pop-up and then you are on your own.
Schajee
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.