Solved

urgent - import xls into mysql database

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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…
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 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 …

930 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now