Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to import excel csv-file into your mysql db using php?

Status
Not open for further replies.

keith23

Technical User
Joined
May 26, 2005
Messages
97
Location
NL
Hi all .i got a excel .csv file and i want to import it to mysql database but i do not know how to write a php script that does the job for me. I be happy if an expert show me how.Thanks
 
You may not need a PHP script to do this at all. If you can get the file to a place where MySQL can see it on a filesystem, then you can use a LOAD DATA INFILE query to dump the data in in one go. See


Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top