Hello everyone. I am attempting to connect to a MSSQL server 2008 R2 server at work. I am getting an error when I try to connect to it. I just installed PHP on the server yesterday and it will show the PHP files with no problem, just will not allow me to run anything that deals with the SQL Server. I am getting the error:
Fatal error: Call to undefined function mssql_connect() in C:\Inetpub\wwwroot\msag\includes\db\connect.php on line 5
Conenction Code:
[php]<?php
error_reporting(E_ALL); ini_set(‘display_errors’, ‘1’);
$connect_error = (‘DB connection error.’);
mssql_connect (‘hostname’, ‘username’, password);
mssql_select_db (‘database’) or die ($connect_error);
?>[/php]
Any advice would be greatly appreciated.