<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_19332"> <div class="blockcode"> <div id="code_O8N"><ol> <li><?php //读取mdb数据库例程<li>$conn = new com("ADODB.Connection");<li>$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". realpath("data/db.mdb");<li><li>$conn->Open($connstr);</li> <li>$rs = new com("ADODB.RecordSet");</li> <li>$rs->Open("select * from szd_t",$conn,1,1);</li> <li>while(! $rs->eof)</li> <li>$f = $rs->Fields(1);</li> <li>echo $f->value;</li> <li>$rs->MoveNext();</li> <li>?></li> </ol></div> <em onclick="copycode($('code_O8N'));">复制代码</em> </div> </td></tr></table> <div id="comment_19332" class="cm"> </div> <div id="post_rate_div_19332"></div> <br><br>