this is related to the code from my previous question, but this new problem is related to printing array data into a string, which then is passed on to the text on my page