您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

能自动生成excel格式文件吗

2024/3/24 17:33:20发布11次查看
excel|生成excel
我是着处理的
header(content-type:application/vnd.ms-excel);
header(content-disposition:filename=test.xls);
echo 编 号\t;
echo 公司名称\t;
echo 房 间 号\t;
echo 入驻日期\t;
echo 联 系 人\t;
echo 联系电话;
include(include/global.php);
$sql = select id,company,roomid,indate,telephone,contanctman from company_info;
$db->query($sql);
$i = 0;
while($db->records())
{
echo \n;
echo $db->get('id');
echo \t;
echo $db->get('company');
echo \t;
echo $db->get('roomid');
echo \t;
echo $db->get('indate');
echo \t;
echo $db->get('contanctman');
echo \t;
echo $db->get('telephone');
}
$i++;
?>
__________________
水中的鱼,自由自在的呼吸。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product