<?php
$conn = new com("ADODB.Connection");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("d:\data\test.mdb");
$conn->Open($connstr);
$rs = new com("ADODB.RecordSet");
$rs->Open("select * from person",$conn,1,1);
while(! $rs->eof) {
echo $rs->Fields["F_name"]->value."<br/>";
$rs->MoveNext();
}
?>
提示错误为
Warning: (null)(): Invoke() failed: 发生意外。 Source: Microsoft OLE DB Provider for ODBC Drivers Description: [Microsoft][ODBC Microsoft Access Driver] 文件名无效。 作者:
毛毛 时间: 2006-3-14 20:16