首页 >后端开发 >php教程 >读取mdb数据库例程_PHP教程

读取mdb数据库例程_PHP教程

WBOY
WBOY原创
2016-07-13 17:04:491589浏览

读取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...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn