OK I'll try to explain this as best I can. I've got a form which will be used to upload CSV files. the CSV files are then inserted in to a MySQL database. There are 4 different files and the user will select which table to put the file into. However, obviously the tables aren't all the same structure. Some have dates in certain columns etc. So how can I say if tablename is this - use this template to format the data. if tablename is soemthing else, use a different template? I don't even know if template is the right word I'm looking for. I just thought maybe it was possible to create a "template file" which says format field 1 as text, field 2 as maketime() etc etc.
Hopefully somebody can help me out???
Hopefully somebody can help me out???