Hi
I'm no array-guru, and need some guidance !
I have a DB table from which I am going to fetch a load of data. I need 6 fields from each row (OLD_ID_1, OLD_ID_ID2, OLD_ID_ID3, NEW_ID_1, NEW_ID_ID2, NEW_ID_ID3). There can be anywhere from 1 to 40 rows in the table, so that's between 6 and 240 fields.
For each of those fields, I need to call the same function, with the field value being passed into the function. I believe I can do this with array_walk().
array_walk($my_array, 'my_function');
What I need to be able to do, is get the MySQL results into a single array. However, I'm beaten on this.
I'm not expecting a full set of instructions, just some pointers towards the ideal functions.
Regards
Rodders