PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I export data into Word/Excel documents?


There are many possible ways to achieve this with PHP.

One of the simplest ways to get data into a format that can be used with Excel is simply to write a .csv text file, or comma separated file, and then open this in excel.

This will split the data into columns based on where the commas are, so you will need to ensure that your data is well formatted to make this value, and so this means that the comma only appears as a separator for instance and if it appears elsewhere it is escaped.

Comments on this Question/Answer

How can I export data into Word/Excel documents?
By: Rajiv Singh, 18 Dec 2008 05:53:07



Reply to comments / post your own comment >>>

ASK A QUESTION

More files PHP Questions

Where is a text file i created kept?

How do i keep my site menu in one file?

Hello, I have a php file that has octet binary numbers in it. How can I see the actual wording? This is an example of how it look: 00111010 11010010 And so on.

How can i print a file without opening it ?

Would like to create a web page by using the contents of file#1 as input, writing contents of a variable as content, and ending with contents of file#2. Would you please help me learn how to do this? Here is my attempt: $in1 = 'input1.html'; $in2 =



Custom Search