Hello All,
First off let me provide a bit of background. I have been "duct taping" php for a few years but have never fully wrapped my head around it. I am fairly competent and can manage my way around though I'm no ace. I have been working with PostNuke (Zikula) for years and and also quite familiar with Smarty.
--
So, I have a project that requires the importing of a csv file and populating of a table. The csv file contains two columns (A and 😎 and any number of rows. I need to import this csv file and build a master array for the whole csv file and then in that array I need to build an array for each row in the csv file while also adding several more fields (C, D, E, F) which for the time being will remain empty.
I then need to take this master array and for each sub array I need to fill in the null fields (C, D, E, F) with the contents of another table (T1) matching the records according to field A which will exist in both the sub arrays and the table T1.
Finally, I need to take this master array filled with sub arrays full of data from both the csv and the table T1 and for each sub array create and populate a row in another table (T2)
In my mind I see the steps:
1.) import the csv file and create the master and sub arrays with the contents of the csv file
2.) populate the sub arrays with the contents of T1 according to field A
3.) create rows in T2 for each sub array and save the data
Thing is I really don't know where to start or how exactly to build it and with what functions.
Phew...
That's just the first part of the project... later I'll most likely need some hand holding while I figure out how to create a method for editing/deleting the contents of the rows in T2 in an effective and simple manner... I'd love to use ajax but other than knowing what it is I have almost no experience with it... 🙁
Thanks in advance,
-Julian