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

链接Access数据库_PHP教程

程序员文章站 2022-05-27 14:28:04
...
//读取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/630921.htmlTechArticle?php //读取mdb数据库例程 $conn = new com(ADODB.Connection); $connstr = DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=. realpath(data/db.mdb); $conn-Open($connstr); $rs = new...