I am trying to get php to connect to mssql. I have read the manual and I believe I have things set right. I am running win2k advanced server with service pak 2. I have sql2000. The ntwdblib.dll file version is "2000.2.8.0" the following is the script I am trying to run username and password has been change to protect the innocent. The error message I get. is.. Fatal error: Call to undefined function: mssql_connect() in "Path to file is here" test.php on line 11. Can someone please help as I have never installed or used php before.
Thanks
<?
print "Trying to access SEQUEL with test<br>";
$hostname = "localhost";
$username = "test";
$password = "password";
$dbName = "database";
MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND.");
mssql_select_db($dbName) or DIE("Table unavailable");
print "Database and table selected successfully";
//$link = mssql_connect("localhost", "test", "password");
//if ($link){
// print "CONNECTED TO DATABSE";
//}
//else{
// print "FAILED TO CONNECT TO THE DATABASE";
//}path to file is here