open("driver=microsoft access driver (*.mdb);dbq=c:member.mdb"); $rs=$dbc->exe">
当前位置:Gxlcms > PHP教程 > PHP链接ACCESS数据库最简单的方法_PHP教程

PHP链接ACCESS数据库最简单的方法_PHP教程

时间:2021-07-01 10:21:17 帮助过:9人阅读

$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();
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/371523.htmlTechArticle? $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=...

人气教程排行