Apr 5, 2001 #1 lothadio Programmer Apr 5, 2001 27 SI I am using PHP4 and I want to connect to MS SQL Server7.0 running on Win2000 server, How do I do this Thanks
I am using PHP4 and I want to connect to MS SQL Server7.0 running on Win2000 server, How do I do this Thanks
Apr 5, 2001 #2 vcherubini Programmer May 29, 2000 527 US Use the mssql_connect function: [tt] $conn = mssql_connect($host,$user,$pass); if (!$conn) { print "Failed to connect to database"; } else { print "Connection successful\n"; } [/tt] That should do it. Setting up mssql server on your machine is a different story. You can search around TT for other forums on how to set up mssql. HTH. -Vic vic cherubini vikter@epicsoftware.com http://www.epicsoftware.com==== Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director ==== Upvote 0 Downvote
Use the mssql_connect function: [tt] $conn = mssql_connect($host,$user,$pass); if (!$conn) { print "Failed to connect to database"; } else { print "Connection successful\n"; } [/tt] That should do it. Setting up mssql server on your machine is a different story. You can search around TT for other forums on how to set up mssql. HTH. -Vic vic cherubini vikter@epicsoftware.com http://www.epicsoftware.com==== Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director ====