php导出excel表格
2011-09-05 05:06
197 查看
http://hi.baidu.com/3800_hk/blog/item/56d0c93d5f7e52d69e3d62ff.html
<?php
$xlsname = date('YmdHis');
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=$xlsname.xls"); //$xlsname 为随机文件名
?>
<table>
<tr>
<th>序号</th>
<th>姓名</th>
<th>性别</th>
</tr>
<tr>
<td>1</td>
<td>小王</td>
<td>男</td>
</tr>
<tr>
<td>1</td>
<td>小丽</td>
<td>女</td>
</tr>
</table>
<?php
$xlsname = date('YmdHis');
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=$xlsname.xls"); //$xlsname 为随机文件名
?>
<table>
<tr>
<th>序号</th>
<th>姓名</th>
<th>性别</th>
</tr>
<tr>
<td>1</td>
<td>小王</td>
<td>男</td>
</tr>
<tr>
<td>1</td>
<td>小丽</td>
<td>女</td>
</tr>
</table>
相关文章推荐
- PHP导出到Excel表格 解决数字不正常显示问题
- php导出excel表格
- mysql导出成excel表格的php代码
- php导出EXCEL表格
- PHPExcel-1.8.1导入、导出Excel表格
- php导出excel表格
- PHP导出excel表格
- 用php将数据库中数据导出成excel表格
- phpExcel 实现excel表格和mysql数据库的导入导出
- [php] thinkphp使用csv导出excel表格
- PHP简单导出Excel表格
- tp5 phpexcel 导入,导出 excel表格
- 通过phpexcel导入和导出excel表格
- PHP批量导出数据为excel表格
- php导出excel表格部分代码
- php导出excel表格
- [PHP][使用PHPCxcel制作excel表格并导出文件的用法及成功实例[已验证][原创]
- PHP导出大量数据到excel表格
- php导入导出excel表格
- php导出EXCEL表格