I am trying to connect to an Access database using the following script:
<html>
<body BGCOLOR="EEEEEE">
<?php
//we don't need a username & password.
//connect to a DSN called NDB with no username or password
$connect = odbc_connect("NDB","","" );
print_r($connect);
if (!$connect) {
echo "Connection failed";
exit;
};
else {
echo "Connection successful";
};
odbc_close( $connect);
?>
</BODY>
</HTML>
However when I execute this script I just get a grey html screen. It does not even print out the $connect variable. Does any1 have any suggestions on what to look at, I have been struggling with this for over a week.