I am relatively new to both PHP and SQL and I am in the process of developing a PHP application to run on a work server. I have created a test page using code from php.net to literally test the connection and I keep getting the following error:
Fatal error: Call to undefined function mssql_connect()
My code is
<?php
$server = 'myserver\SQLEXPRESS';
$link = mssql_connect($server, 'username', 'password');
if (!$link) {
die('Something went wrong while connecting to MSSQL');
}
?>
Obviously I cant proceed with the project until I can establish the connection, is there anything I could be missing or doing wrong?
Any help will be very much appreciated!