Advertisement

10.04.2008 at 04:25AM PDT, ID: 23787193 | Points: 250
[x]
Attachment Details

How do I connect to MS SQL 2005 EXPRESS with PHP running on IIS?

Asked by QC20N in PHP and Databases, Microsoft IIS Web Server, SQL Server 2005

I'm trying to connect to my MS SQL2005 DB with PHP using this commando:

$sql = mssql_connect($myserver) or die ("Could not connect to database: ".mssql_get_last_message());

But I get an error saying: HTTP 500 Internal Server Error.

My PHP works. Tried with this:

<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>

Can anyone help me? Start Free Trial
 
 
[+][-]10.04.2008 at 11:57AM PDT, ID: 22641888

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.05.2008 at 08:11AM PDT, ID: 22644853

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.06.2008 at 12:40PM PDT, ID: 22653632

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 - Hierarchy / EE_QW_2_20070628