MS SQL connection with PHP fatal error

This question already has an answer here:

  • Call to undefined function mssql_connect()

    1 answer

  • SQL Query: each column value is an aggergation based on a different filter on a temporary table
  • MS SQL Date Only Without Time
  • Error when creating a Controller in Visual Studio 2012
  • SSRS webpage error status code 500
  • how to get the list of users accessing to particular tables or views
  • Logging ALL Queries on a SQL Server 2008 Express Database?
  • 2 Solutions collect form web for “MS SQL connection with PHP fatal error”

    The MSSQL extension is not activated by default.

    • Do a phpinfo() to find out which php.ini file is used by your PHP installation

    • open that php.ini file

    • uncomment the line saying ;extension=php_mssql.dll (remove the semicolon)

    • Restart the server if necessary

    “mssql” was dropped from PHP 5.3 distribution. Use sqlsrv drivers instead. You can find those at this link PHP drivers for MS-SQL

    MS SQL Server is a Microsoft SQL Database product, include sql server standard, sql server management studio, sql server express and so on.