当前位置:Gxlcms > PHP教程 > 读取mdb数据库例程_PHP教程

读取mdb数据库例程_PHP教程

时间:2021-07-01 10:21:17 帮助过:36人阅读

读取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();

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/630839.htmlTechArticle读取mdb数据库教程例程 $conn = new com(adodb.connection); $connstr = driver={microsoft access driver (*.mdb)}; dbq=. realpath(data/db.mdb); $conn-open($connstr); $rs = new...

人气教程排行