Open("select * from dbo_dirs",$conn,1,3); /* 循环">
当前位置:Gxlcms > PHP教程 > PHP连接ACCESS_PHP教程

PHP连接ACCESS_PHP教程

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

Open($connstr); 
/* 
创建记录集查询 
*/ 
$rs = @new COM("ADODB.RecordSet"); 
$rs->Open("select * from dbo_dirs",$conn,1,3); 
/* 
   循环读取数据 
*/ 
while(!$rs->eof){ 
echo "$rs->Fields["title"]->Value; 
echo "
"; 
$rs->Movenext();     //将记录集指针下移 
} 
$rs->close(); 
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/446995.htmlTechArticleOpen($connstr); /* 创建记录集查询 */ $rs = @new COM(ADODB.RecordSet); $rs-Open(select * from dbo_dirs,$conn,1,3); /* 循环读取数据 */ while(!$rs-eof){ echo $rs-Fields[t...

人气教程排行