การใช้งาน ADODB บนเว็บ
<?
$db = 'd:\Goragod\Address\Address.mdb';
$conn = new COM('ADODB.Connection');
$conn->Open("DRIVER={Driver do Microsoft Access (*.mdb)}; DBQ=$db");
$sql = 'SELECT * FROM Address';
$res = $conn->Execute($sql);
while (!$res->EOF)
{
print $res->Fields['fName']->Value . "<br />";
$res->MoveNext();
}
$res->Close();
$conn->Close();
$res = null;
$conn = null;
?>