<?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\");
print \"<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, \"\", \"\", \"\")) {
print \"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();
?>