You have an issue with $data but hide it to us. That's my point.
-jo
In reply to Re^3: Add new data to array by jo37 in thread Add new data to array by Anonymous Monk