2011-11-16 07:11:04 UTC
Fatal error: Call to undefined function sqlsrv_connect()
Fatal error: Call to undefined function mssql_connect()
what problem am i having?
im using the code
$serverName = "192.168.1.10\DSS"; //serverName\instanceName
$connectionInfo = array( "Database"=>"AutoLogic", "UID"=>"sa", "PWD"=>"");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn ) {
echo "Connection established.
";
}else{
echo "Connection could not be established.
";
die( print_r( sqlsrv_errors(), true));
}?>
which i found online and also
$myServer = "192.168.1.10\DSS";
$myUser = "sa";
$myPass = "";
$myDB = "AutoLogic";
$s = mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
$d = mssql_select_db($myDB, $s)
or die("Couldn't open database $myDB");
?>
which i also found online.
Thank you in advanced!