<?PHP
include(\'toHtml.inc.PHP\'); // load code common to ADODB
include(\'adodb.inc.PHP\'); // load code common to ADODB
$conn = &ADONewConnection(\'Access\'); // create a connection
$conn->PConnect(\'test\');// connect to MySQL, agora db
$sql = \'select name, group1 from experts\';
$rs = $conn->Execute($sql);
rs2Html($rs,\'border=2 cellpadding=3\',array(\'Customer Name\',\'Customer ID\'));
$rs->Close(); // optional
$conn->Close(); // optional
?>
<?PHP
include(\'toHtml.inc.PHP\'); // load code common to ADODB
include(\'adodb.inc.PHP\'); // load code common to ADODB
$db = &ADONewConnection(\"ado_Access\");
rint \"<h1>Connecting $db->databaseType...</h1>\";
$Access = \'test.mdb\';
$myDSN = \'PROVIDER=Microsoft.Jet.OLEDB.4.0;\'.\'DATA SOURCE=\'. $Access . \';\';.\'USER ID=;PASSWord=;\';
if (@$db->PConnect($myDSN, \"\", \"\", \"\")) {
rint \"ADO version=\".$db->_connectionID->version.\"<br>\";
$sql = \'select name, group1 from experts\';
$rs = $db->Execute($sql);
rs2Html($rs,\'border=2 cellpadding=3\',array(\'Customer Name\',\'Customer ID\'));
} else print \"ERROR: Access test requires a Access database $Access\".\'<BR>\'.$db->ErrorMsg();
?>