You're right, i didn't explain it clearly enough. Here's another go:
Supposed the table was static:
I want the output to be like this:
<table>
<tr><td>Item 1</td><td>Item 2</td><td>Item3</td></tr>
<tr><td>Item 4</td><td>Item 5</td><td>Item6</td></tr>
<tr><td>Item 7</td><td>Item 8</td><td>Item9</td></tr>
</table>
Right now my original code results in a table like this:
<table>
<tr><td>Item 1</td><td>Item 1</td><td>Item1</td></tr>
<tr><td>Item 2</td><td>Item 2</td><td>Item2</td></tr>
<tr><td>Item 3</td><td>Item 3</td><td>Item3</td></tr>
:
:
<tr><td>Item 9</td><td>Item 9</td><td>Item9</td></tr>
</table>
That's how I don't want it!
Secondly, the value should always remain $i[0], because that's the value I want in each cell.
I do this all the time in Cold Fusion, but for some reason get stuck on the php version !
Did this help?
Thanx