Hi,
remove php_mssql.dll from system32. Make sure that extension_dir in php.ini points to the directories where the extension dlls (php_???.dll) are, like e.g.
extension_dir=C:\php5\ext
Additionally, copy the dll ntwdblib.dll from the php5 base directory to system32. php_mssql.dll needs that dll.
Thomas