PHP Excel Form Generator:: Example: - Firsntame - Lastname - Mail
PHP Excel Form Generator:: Example: - Firsntame - Lastname - Mail
What I would like to achieve: Imagine you can create an Excel spreadsheet where you are going to create multiple columns. For al of those columns you insert data. For this example I will use contact details. Example: | Firsntame | Lastname | Mail | | John | Cooper | [email protected] | | Bart | Simone | [email protected] | Now I have to read this Excel le into PHP. I can loop the records and put them in an multidimensional array. The Tricky Part: What is the best way to built up a database when you know that the Excel le is never a template used for uploading other contacts? Firstname, Lastname and other table heading can be spelled in an other way there can be 15 columns sometimes and sometimes 5. The application that I would like to create should detect the table headings. But based on those heading I would like to add these values into a database eld. ( I would like to couple it on a eld. ) Example:
Questions: - What is the best way to add those records to the database ( with personal picked column names ) - Is this a good practice ?