1. Modify php.ini to delete and save the comment extension=php_mssql.dll.
Modify php.in to change mssql.secure_connection = Off to mssql.secure_connection = On.
2. Download ntwdblib.dll (2000.80.194.0) for 2005
Click to download
3. Open the file X:AppServphp5ext and copy php_mssql.dll to the system32 directory.
Copy the downloaded ntwdblib.dll to the system32 directory.
Copy the downloaded ntwdblib.dll to the php5 directory.
Restart apache service
Connect to MS SQL Server 2005 code
$Number=mssql_num_rows($Result);
for($i=0;$i<$Number;$i++)
{
$Row=mssql_fetch_array($Result);
echo($Row[1]);
echo("
");
}
?>