Hey guys,
I have been racking my brain trying to work this one out. I have searched everywhere and couldn't find anything...hopefully you guys can help 🙂
What is required:
A user uploads a CSV file which contains headers as the first row. The user is then taken to a second page whereby they have to map the CSV file headers with the database fields...example:
Filename: test.csv
name,age,sex,postcode
josh,25,m,3333
lisa,26,f,2222
john,33,m,2223
etc...
A database table users contains the following fields: POSTCODE,NAME,SEX
Therefore, the user must be able to specify that the database field POSTCODE is equal to the last field of the CSV etc...
If anyone knows how to do this...it would be greatly appreciated...
all i need is pseudocode not actual PHP.
thanks