I am running into trouble trying to load sign into my database using php. Here is the code I am using, can someone please tell me what I am doing wrong:
<?php
$dbconnection = mssql_connect(localhost,"","")
or die("Could not connect to SQL Server!");
$targetdb = mssql_select_db("CNSData", $dbconnection)
or die("Could not open database \"employees\"");
$sql = "SELECT UserID FROM Student";
$queryresults = mssql_query($sql, $dbconnection)
or die("Could not perform database query");
?>
Here is the Error I am getting
Fatal error: Call to undefined function: mssql_connect() in D:\CNS System\test.php on line 11