PHP鏈接ACCESS數(shù)據(jù)庫最簡單的方法
發(fā)布時間:2008-04-18 閱讀數(shù): 次 來源:網(wǎng)樂原科技
<?
$dbc=new com("adodb.connection");
$dbc->open("driver=microsoft access driver (*.mdb);dbq=c:\member.mdb");
$rs=$dbc->execute("select * from tablename");
$i=0;
while (!$rs->eof){
$i+=1
$fld0=$rs->fields["UserName"];
$fld0=$rs->fields["Password"];
....
echo "$fld0->value $fld1->value ....";
$rs->movenext();
}
$rs->close();
?>