Apr 5, 2001 #1 lothadio Programmer Joined Apr 5, 2001 Messages 27 Location 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 Joined May 29, 2000 Messages 527 Location 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 ====