For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > Preparing SQL insert statements from CSV files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Preparing SQL insert statements from CSV files
T K

2007-10-04, 9:59 pm

Hi,

I have to parse csv files and put them into database. I was able to
parse the files by fgetcsv() and made an HTML table. But, when it
comes to parse more closely and make "INSERT INTO" statement, then I'm
having problems with, probably "for-loop".

For example, how do you do this task with the simple csv file shown at
https://admin.easymail.rmplc.co.uk/admin_help/csv.htm .

T
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com