Hi all,
I am testing a connection to MSSQL but I get the following error:
Fatal error: Call to undefined function: mssql_connect() in
c:\inetpub\scripts\newsletter.php on line 28
I don't understand what this error is - my code is as follows:
$myServer = "localhost";
$myUser = "admin";
$myPass = "cradle";
$myDB = "MGN";
$s = mssql_connect($myServer, $myUser, $myPass)
or die("Unable to connect to MSSQL on $myServer");
$d = mssql_select_db($s, $myDB)
or die("Unable to select database: $MGN");
I can't see anything wrong with my code so I assume something is not set
up correctly? The extensions_dir in php.ini (winnt folder) is pointing
to the correct place.
Thanks in advance.
Gary