PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Its intended function is to build a multidimensional array of file details ( based on selected db record) which is then passed to a mailing function which attaches the aforementioned files to the mail. Everything works fine EXCEPT I only get one entry in my multidimensioned array. The code (please ignore hardcoded values I havent designed an interface yet!)
I do appreciate that the variable $file_array is being cleared out every iteration, but I dont understand how to APPEND the sub arrays into the main array.
So due to my lack of understanding regarding arrays I thought that everytime the loop iterated the array '$file_array' was being loaded with the new array in position '0' so I whacked a counter in to see if that helps.
I did do alot of searching regarding multidimensional array but all the examples used hard coding rather than dynamic data!