日期:2014-05-16 浏览次数:20600 次
<?php
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:attachement;filename=khxx_".date("Ymd").".xls");
include("db.php");
$sql="SELECT * FROM `khxx`";
$query=mysql_query($sql);
echo "时间\t类型\t区域\t姓名\t具体地址\t联系电话\t证件号\t套餐\t时长\t赠送\t金额\t经办人\t帐号\t备注\n";
while ($rs=mysql_fetch_array($query)){
echo "{$rs['dates']}\t{$rs['type']}\t{$rs['area']}\t{$rs['names']}\t{$rs['add']}\t{$rs['phone']}\t{$rs['no']}\t{$rs['set']}\t{$rs['dur']}\t{$rs['give']}\t{$rs['moneys']}\t{$rs['attn']}\t{$rs['username']}\t{$rs['rem']}\n";
}
?>