<?
$dbc=new com("adodb
connection");
$dbc
>open("driver=microsoft access driver (*
mdb);dbq=c:member
mdb");
$rs=$dbc
>execute("select * from tablename");
$i=
;
while (!$rs
>eof){
$i+=
$fld
=$rs
>fields["UserName"];
$fld
=$rs
>fields["PassWord"];
echo "$fld
>value $fld
>value
";
$rs
>movenext();
}
$rs
>close();
?>
From:http://tw.wingwit.com/Article/program/PHP/201311/20970.html