display array in two coloumns
Posted: Thu Feb 18, 2010 6:38 am
hi!
i've searched quite a long time but haven't found a good solution!
i receive an array for my page template which looks like
array( array(item1, content_item1), array(item2, content_item2), array(item3, content_item3), array(item4, content_item4)...)
now i'd like to show the items in a table with 2 coloumns (or more if needed, in another template)
<tr>
<td>item1</td>
<td>item2</td>
</tr>
<tr>
<td>descr1</td>
<td>descr2</td>
</tr>
....item3,4...
what do i've to do to get that work?
tried
foreach, with next in it an other things!
can anyone help me?
regards, jackomo
i've searched quite a long time but haven't found a good solution!
i receive an array for my page template which looks like
array( array(item1, content_item1), array(item2, content_item2), array(item3, content_item3), array(item4, content_item4)...)
now i'd like to show the items in a table with 2 coloumns (or more if needed, in another template)
<tr>
<td>item1</td>
<td>item2</td>
</tr>
<tr>
<td>descr1</td>
<td>descr2</td>
</tr>
....item3,4...
what do i've to do to get that work?
tried
foreach, with next in it an other things!
can anyone help me?
regards, jackomo