I am trying to use a PHP script to upload data from my csv file to my table.
The command I have is...
$data = "LOAD DATA INFILE $file_loc INTO TABLE $tblname IGNORE 1 LINES";
Can anyone tell me if this command is correct?
Also, how can I specify that the fields within the file are seperated by commas(,) and are no enclosed by anything?