|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 50%||Total: 23,011 This week: 1||All time: 25 This week: 117|
This class can be used to import data from CSV (Comma Separated Value) files into a given MySQL database table.
It parses a given CSV file to extract the field names. Then it imports the data into the MySQL database using a LOAD DATA INFILE query to import the data in a much faster way than using SQL INSERT queries.
If necessary, the class can also create the database table using the CSV file headers to retrieve the table field names.
UPDATE: From now you can set the encoding table which is used to parse the file.