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
Solved

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

Posted on 2008-06-20
4
399 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
4 Comments
 
LVL 14

Accepted Solution

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

809 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