欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

读取mdb数据库例程_PHP教程

程序员文章站 2022-05-10 11:16:11
...
读取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...