Home >Backend Development >PHP Tutorial >The easiest way to link ACCESS database with PHP_PHP tutorial

The easiest way to link ACCESS database with PHP_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-21 14:52:44820browse

$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=...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn