Thank you for posting your code but please use code tags when posting code in the future. Yes you need two loops but one needs to be nested within the other. The outer loop is responsible for your rows. The inner loop is responsible for your columns (Ten columns for each row - 10 * 10 - for 100 pieces of data). If I read your code right, you have two loops, one after the other in your code. This will give you 10 + 10 or 20 pieces of data.
To use the code tag, highlight the code that you post and then click the Code button, which is above the edit box. The Code button will add the appropriate markup to the text. so that it displays very nicely with line numbers.