PHP undefined function mssql_connect and sqlsrv_connect

Posted by Damodar Bashyal on April 06, 2016

 

mssql_connect is now deprecated - http://php.net/manual/en/function.mssql-connect.php now move to sqlsrv_connect - http://php.net/manual/en/function.sqlsrv-connect.php

ERROR: exception 'Exception' with message 'connection to mssql is not supported. Please download and follow directions from here - https://www.microsoft.com/en-us/download/details.aspx?id=20098' in C:\_projects\technooze\app\code\local\Technooze\Schoolbrochure\Model\Mssql.php:182

For sqlsrv_connect to work download (Microsoft Drivers for PHP for SQL Server) from https://www.microsoft.com/en-us/download/details.aspx?id=20098

More»

QR Code: PHP undefined function mssql_connect and sqlsrv_connect