I am new to PHP and I am trying to connect my PHP with MS SQL SERVER. I have googled it but not found any good solution.
I am using PHP version : 7.0.6
I have downloaded the required extension and place it in xampp/php/ext folder and added these lines in php.ini file
extension=php_pdo_sqlsrv_7_nts_x64.dll
extension=php_sqlsrv_7_ts_x64.dll
extension=php_pdo_sqlsrv_7_ts_x64.dll
extension=php_sqlsrv_7_nts_x64.dll
and I m using this code to connect to my server.
$myServer = "SERVER_IP";
$myUser = "USER_NAME";
$myPass = "PASSWORD";
$myDB = "DB_NAME";
$dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer");
bu tit shows me this error:
Fatal error: Uncaught Error: Call to undefined function mssql_connect() in C:\xampp\htdocs\schedule\server.php:2 Stack trace: #0 {main} thrown in C:\xampp\htdocs\schedule\server.php on line 2
Any help in this would be highly appreciated !!