in reply to Re^3: Adding Pages
in thread Adding Pages

Hello choroba,
Thanks for your updated code it does the trick. I'm still a little confused between the 'foreach' and 'while' operations. In my case the 'foreach' statement just displayed the data while the 'while' statement allowed me to manipulate my data. Thanks again.