is this a one off file upload?
if so, get it into Excel which will do a good job of sorting out the columns. Then on the next available column have somehting like:
='insert into mytable values (null, '" + A1 + "','" + A2 + "');"
assuming an autoincrementing id
and build it up to include all the fields - I just got lazy
then copy this into a text file, and put it straight to mysql.
If this is a regular upload you'll need to read each line of the file, explode it into an array and then build the insert from the array.
hope this helps.