I have a php application where I import the data from excel sheet to the database. I am using phpExcel for this.
I have achieved a simple import functionality for this.
Now, my problem is when I import data form excel sheet to the database in particular format. Like,
Table name:-Mytable
id | name | surname | email | date |
and the excel file I am using to import have a same format. But a format can change Like,
id | surname | name | date | email |
how can I map the columns from excel file to the database table so that correct data should enter into the data table.