Hi folks, I'm working on building a menu of items for a store front. The items are being pulled from a table. The problem I'm running into is that I need to get all of the items from this table into a parent and child relationship from top to bottom. In other words, if I have:
Item: Parent:
Item1 0
Item2 0
Item3 Item1
and so on.....
I'ld like to read all of these into an array, and then start picking through them 1 by 1 and inserting them into another array in order. However the trouble is that I can't seem to figure out how to insert into an array and re-key the existing array so that the first element is key1 and 2nd = key2, etc.
Thanks
John