php读取mdb数据库程序代码

<?php
//读取mdb数据库例程
$conn = new com("ADODB.Connection");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". realpath("data/db.mdb");
$conn->Open($connstr);
$rs = new com("ADODB.RecordSet");
$rs->Open("select * from szd_t",$conn,1,1);
while(! $rs->eof) {
$f = $rs->Fields(1);
echo $f->value;
$rs->MoveNext();
}
?>
php/mdb.txt · 最后更改: 2011/01/18 13:58 由 116.236.205.98
2007~2011 Copyright @ http://www.pythonclub.org