how to import csv file in mysql

edited December 2013 in Modules
Dear all,
I have a problem about csv import file.
With a simple module with form_fields parameter

$fields['csv_import'] = array(
'type' => 'file',
'overwrite' => false,
'accept' => 'csv|txt|xls',
'order' => 1000,
'label' => 'CSV Import',
'upload_path' => TRAVEL_PORTAL_PATH.'assets/data/',
'overwrite' => TRUE //TODO: Check if file already exists
//'filename' => */
);
After that, i want to insert csv column record to MySQL via fuel cms.
How to import csv ?

Comments

Sign In or Register to comment.