如何使用PHP填充使用MySQL数据的Excel电子表格 [英] How to populate Excel Spreadsheet with MySQL Data using PHP

查看:141
本文介绍了如何使用PHP填充使用MySQL数据的Excel电子表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们继续下去吧 - 我意识到我可以使用php和mysql生成表格,并以几乎所有格式输出,但在这种情况下,excel电子表格格式化为一些奇怪的方式(布局,颜色等),客户不会发生。我必须使用精确的excel电子表格。



我试图从一个mysql数据库中提取数据,并在其后面使用php计算并填充Excel文件中的各种单元格。是否可以这样做?



提前感谢

解决方案

p>您可以尝试PHPExcel( http://phpexcel.codeplex.com/ )。我认为这是你正在寻找的。

Let's go ahead and get this out of the way - i realize I can generate tables with php and mysql and output in 'almost' any format I need but in this scenario, the excel spreadsheet is formatted in some strange ways (layout, color, etc) and the client won't budge. I have to use the exact excel spreadsheet.

I am trying to pull data from a mysql database with php calculations behind it and populate various cells within an Excel file. Is it possible to do this?

Thank you ahead of time

解决方案

You can try PHPExcel ( http://phpexcel.codeplex.com/). I think this is what you are looking for.

这篇关于如何使用PHP填充使用MySQL数据的Excel电子表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆