PHP连接ACCESS_PHP教程
程序员文章站
2024-01-15 14:48:52
...
Open($connstr); /* 创建记录集查询 */ $rs = @new COM("ADODB.RecordSet"); $rs->Open("select * from dbo_dirs",$conn,1,3); /* 循环读取数据 */ while(!$rs->eof){ echo "$rs->Fields["title"]->Value; echo " "; $rs->Movenext(); //将记录集指针下移 } $rs->close(); ?>