php 导出excel

来源:互联网 发布:萨乌尔数据 编辑:程序博客网 时间:2024/06/07 19:17
header("Content-type:application/vnd.ms-excel;;charset=UTF-8"); 
header("Content-Disposition:attachment; filename=cate_list.xls");


echo "<table width='100%' border='1' >"; //边框
echo"<tr style='background:yellow;font-weight:bold;'>";
echo "<td  style='color:black' align='center'>  <font size=4>id </font></td>";


echo "<td  style='color:black' align='center'>  <font size=4>goods_name </font></td>";
echo "<td  style='color:black' align='center'>  <font size=4>shop_id </font></td>";  
echo "<td  style='color:black' align='center'>  <font size=4>hc360_goods_id </font></td>"; 


echo "</tr>";
0 0
原创粉丝点击