Home >Backend Development >PHP Tutorial >Read mdb database routine_PHP tutorial

Read mdb database routine_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:04:491589browse

Read mdb database tutorial routine

$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.htmlTechArticleRead mdb database tutorial routine $conn = new com(adodb.connection); $connstr = driver={ microsoft access driver (*.mdb)}; dbq=. realpath(data/db.mdb); $conn-open($connstr); $rs = new...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn