Posted on 2007-02-08 17:25
苑 阅读(145)
评论(0) 编辑 收藏 所属分类:
PHP 学习
<?php
$con= new com("adodb.connection");
$con->open("Driver=Microsoft Access Driver (*.mdb);DBQ=".realpath("data.mdb"));
$rs=new com("adodb.recordset");
$sql="select * from product";
$rs->Open($sql,$con,1,3);
while(!$rs->EOF){
echo $rs->Fields["pname"]->value;
echo "<BR>";
$rs->Movenext();
}
$rs->close();
?>