Hi,
does anyone know what DSN I must use to get connected to my MS Access database?
BUSINESS is my OBDC connection on Windows 2000 to my database.
As PHP database type I use 'odbc'.
Please find the enclosed code snipet:
<?php require_once('DB.php');
$dsn = "odbc:///BUSINESS";
// Establish the connection
$db = DB::connect($dsn);
if (DB::isError($db)) {
die ($db->getMessage());
}
?>
When running it, I receive an DB Error: connect failed.
Unfortunately with same result, I tried the following DSN:
$dsn = "odbc:///BUSINESS";
$dsn = "odbc://localhost/BUSINESS";
$dsn = "odbc://administrator@localhost/BUSINESS";
$dsn = "odbc://user@localhost/BUSINESS";
$dsn = "odbc://user:password@localhost/BUSINESS";
Any hints from you are very welcome,
regards,
bjoon
require_once('DB.php');$dsn = "odbc:///BUSINESS";$db = DB::connect($dsn);if (DB::isError($db)) {die ($db->getMessage());}