3

i am using wamp server 2.5 and php 5.5.12 and SQL server 2014.

i am trying to connecting a php application . but its giving me an error to connecting a database

enter image description here

1 Answer 1

2

The MSSQL extension is not available anymore on Windows with PHP 5.3 or later. SQLSRV, an alternative driver for MS SQL is available from Microsoft: » http://www.microsoft.com/en-us/download/details.aspx?id=20098

Step by Step

  1. Download SQLSRV32.EXE (Microsoft Drivers for PHP for SQL Server) from: http://www.microsoft.com/en-us/download/details.aspx?id=20098

  2. Choose path: C:\xampp\php\ext

enter image description here

  1. Uncomment or Append extension = php_sqlsrv_55_ts.dll in php.ini

  2. Restart Apache from XAMPP Control Panel (Stop/Start)

I tested it and it works 100%

Sign up to request clarification or add additional context in comments.

5 Comments

Hii @lea Tano : after fallow your steps now its giving me an error.. unable to load dynamic library 'C:\xamp\php\ext\php_mssql.dll' the specified module could not be found
I read some articles and some people complained that some XAMPP versions do not contain the module dlls. Can you please let me know your XAMPP version, so I can test it myself.
xampp-win32-5.6.3-0-VC11-installer
You were RIGHT. Thing had changed. Please follow my instructions. I downloaded xampp win32-5.6.3 and tested it 100% Check my edited answer
I am also facing same issue.Could you please explain it for WAMP Server ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.