通过PHP将MYSQL数据导出到Excel / CSV
问题描述:
我想通过PHP将MYSQL数据导出到Excel / CSV。所以我可以使用我的数据库或以后有人可以使用和理解它。
i want to Export MYSQL data into Excel/CSV via php. so that i can use my database later or someone can use and understand it.
答
我认为这是你正在寻找
您可以通过选中此地址来创建自己的文件: http://www.programmingfacts.com/export-mysql-data-into-excelcsv-via-php/
You can create your own file by checking this address: http://www.programmingfacts.com/export-mysql-data-into-excelcsv-via-php/
我不能在这里添加工作代码sth is wrong = /
I can't add working code in here sth is wrong =/
但是所有\\t为\t和所有\ \\\
到\\\
but make all \\t to \t and all \\n to \n