Reputation: 1042
I am stuck with how to do this. I am trying to connect to a MSSQL database and I keep getting the error message:
Call to undefined function mssql_connect()
So I am assuming that I need to install the driver. I am currently using PHP Version 7.0.10. What can I do to fix this? Thank you!!
Upvotes: 0
Views: 165
Reputation: 336
This has been removed in PHP 7, you will need to use:
sqlsrv_connect($serverName, $connectionInfo);
http://php.net/manual/en/function.sqlsrv-connect.php
Hope this helps!
Upvotes: 1