I have a loop which generates a table code for a specific number of times.
What I'm having problems with is to echo a variable inside the loop.
The loop runs 10 times, and there are 10 text messages sent to the page, so my problem is how do I get each of the looped tables to echo one of the text messages each time?
Like loop 0 echoes text message 0, loop 1 echoes text message 1 and so on.
This is the code for the table loops.
Expand|Select|Wrap|Line Numbers
- for ($fields=0; $fields<=9; $fields++)
- {
- echo "$titlesArr[titles]";
- echo "
- <tr>
- <td height='35' class='boe_menu_raquo'>
- <span class='boe_menu_raquo_label'> » </span>
- </td> <td class='boe_link_text'>
- <a href='$url1$number$part$number$number$fields'>$number.$fields — $title </a>
- </td> <td> </td>
- </tr>
- ";
- }