时间:2021-07-01 10:21:17 帮助过:5人阅读
分享到:
header("Content-type:text/xml;charset=utf-8");
$conn = new com("ADODB.Connection");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". realpath("syec_mtv.mdb");
$conn->Open($connstr);
mysql_query("set names utf8;");
$rs = new com("ADODB.RecordSet");
$rs->Open("select * from mtv_singer",$conn,3,1);
echo '';
echo ''; ';
echo '';
echo ''; ';
while(!$rs->eof){
$field_0=$rs->Fields(0);
$field_1=$rs->Fields(1);
$field_2=$rs->Fields(2);
$field_3=$rs->Fields(3);
$field_4=$rs->Fields(4);
$field_5=$rs->Fields(5);
$field_6=$rs->Fields(6);
echo "";
$rs->MoveNext();
}
echo '
echo '