Thank you for your replys but my issues continue. What I am doing is pulling an array from my database and trying to add to it. All the elements in the array need to be in specific order and get added one at a time by different users. So my array on the database might be.
Array ( [1] => Array ( [1] => john ) )
Then when the php page adds to the array with the above lines of code I need it to look like this. Say I append david to the array.
Array ( [1] => Array ([0] => david [1] => john ) )
But for some reason when I specify the element like above it appends to the array but wipes all the other elements in the array. Therefore ending like this.
Array ( [1] => Array ([0] => david) )
Is there any way to get around this, I know that all my variables are passing correctly as I echo'ed them out to make sure. I need david to appened to the array in that exact place. So I can't push into the array as other elements go into different places. Can I use array_pad or something. Enough ramblings and thanks heaps for your help.