Solved

Create file from mySQL data and save the file back to mySQL table using PHP

Posted on 2008-06-20
4
403 Views
Last Modified: 2013-12-12
I am developing with PHP and mySQL. I am creating an Excel file from mySQL data.  I want to know how I can store the Excel file being created into mySQL table. I do not want to store the file in the file system or open the file through the browser. I want to create the file and save to mySQL without saving it in the file system first and uploading later.
0
Comment
Question by:galayr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 14

Accepted Solution

by:
Aamir Saeed earned 63 total points
ID: 21836495
0
 
LVL 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 62 total points
ID: 21837312
galayr, You are on the threshold of a computer science adventure!  You probably want to use XML for the greatest portability.  This is not a small task, but it's the right way to go.  Start your reading here:
http://office.microsoft.com/en-us/excel/HA102063961033.aspx
http://www.mrexcel.com/tip064.shtml

In the alternative you can create CSV (comma-separated values) files and store them in plain text format in MySQL.

But I sense a greater question here... If you've got a data base and you're using its contents to create a spreadsheet, why not create the Excel spreadsheet on demand using the most current values in the data base?  Just a thought.  ~Ray
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question