Hi @ebud
Thanks for the code and description. I can see that you have in the past debugged your code through the print_r function.
Can you please go through each line of your code and debug it line by line? at which line does the expected result not occur?
Thanks
E