PHP链接ACCESS数据库简单的方法

发表于:2007-07-13来源:作者:点击数: 标签:
<?  
$dbc=new com("adodb.connection");  
$dbc->open("driver=microsoft aclearcase/" target="_blank" >ccess 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();
?>    

原文转自:http://www.ltesting.net