If you are using MySQL, know then that there is a native MySQL function which would do exactly what you want.
From the MySQL documentation:
6.4.8 LOAD DATA INFILE Syntax
LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name.txt'
[REPLACE | IGNORE]
INTO TABLE tbl_name
[FIELDS
[TERMINATED BY '\t']
[[OPTIONALLY] ENCLOSED BY '']
[ESCAPED BY '\\' ]
]
[LINES TERMINATED BY '\n']
[IGNORE number LINES]
[(col_name,...)]
The LOAD DATA INFILE statement reads rows from a text file into a table at a very high speed. Check the documentation of MySQL to find more about it.
CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law | [reply] [d/l] |
| [reply] |
The csv file look like this
Name,E-mail Address,Home Street,Home City,Home Postal Code,Home State,Home Country/Region,Home Phone,Business Street,Business City,Business Postal Code,Business State,Business Country/Region,Business Phone,Company,Job Title
my name,my_name@name.com,,,,,,,,,,,,,,
| [reply] |
Well there's your problem!
The script that you are attempting to use parses an email that has been exported as a CSV file.
You will have to modify the code (and the columns of your MySQL table) to work with exported contacts.
| [reply] |