【发布时间】:2013-10-19 08:45:29
【问题描述】:
我正在尝试在 PHP 页面中转换名为“Update2”的表的内容。
这是转换器:
header("Content-type: application");
header("Content-Disposition: attachment; filename=myfilename.xls");
这是代码部分:
<?php
$output_sql="select * from update2 where update_com_ag=1 order by update_fullname ASC";
$output_query=mysql_query($output_sql,$con);
while($output=mysql_fetch_array($output_query)){?>
<tr>
<td valign="top"><?php echo strtoupper($output['telephone_number']);?></td>
</tr>
<?php }?>
但是,假设电话号码是 1601000021056,excel 文件中的输出将是 1.601E+12。有什么解决方案可以解决这个问题吗?我尝试了几种方法,但仍然无法正常工作。
谢谢大家!!
【问题讨论】:
-
为什么不用空格分隔电话号码和区号?