php读取mdb数据库例程
程序员文章站
2022-05-13 14:17:17
...
$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();
下一篇: C#中sealed关键字的作用详解