Solved

urgent - import xls into mysql database

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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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.
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 …

617 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