Solved

urgent - import xls into mysql database

Posted on 2004-09-02
3
1,176 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Row insertion failed. Array 5 61
How do I show metrics with PHP or Javascript 6 46
PHP: Best way to scan folders and process files 10 60
How to use session variables in php? 22 46
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…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

749 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