Solved

urgent - import xls into mysql database

Posted on 2004-09-02
3
1,169 Views
Last Modified: 2008-02-26
Hi,

I want to upload an xls document and have php itterate through the rows and insert the data into a mySQL database.  can i get some help/examples/reference links?

thanks - Trevor
0
Comment
Question by:trevorhartman
3 Comments
 
LVL 6

Accepted Solution

by:
merwetta1 earned 500 total points
ID: 11966363
I think this is exactly what you need (but it costs $67):
http://www.paggard.com/projects/xls.reader

Here is a free solution:
http://sourceforge.net/projects/phpexcelreader/

An easy approach to this problem would be to export the spreadsheet as a CSV file and then use PHP to parse that and load it into the db.
0
 
LVL 8

Author Comment

by:trevorhartman
ID: 11967169
thanks, i'll try to get this working
0
 
LVL 7

Expert Comment

by:madwax
ID: 11968632
I just answered a similar question:

http://www.experts-exchange.com/Databases/Mysql/Q_21117228.html

Regards,
//madwax
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
AJAX pass along a variable 3 46
jQuery force form POST 7 45
Link failure 16 32
Wordpress Query 5 25
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

856 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