Categories > TinyButStrong general >

Multi column with one array

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: htvu
Date: 2006-04-03
Time: 05:56

Multi column with one array

How to display data of an array on multi column
Ex:
$arr[0] = array('id'=>1, 'name'=>'A');
$arr[1] = array('id'=>2, 'name'=>'B');
$arr[2] = array('id'=>3, 'name'=>'C');
$arr[3] = array('id'=>4, 'name'=>'D');
$arr[4] = array('id'=>5, 'name'=>'E');

I want to display data in a table like this:

1       A             2       B
3       C             4       D
5       E      
By: Skrol29
Date: 2006-04-03
Time: 11:50

Re: Multi column with one array

Hello,
If the number of column is fixed, like in your example, you can do it using parameter 'serial'. There is an example on line at the Example pages.
By: Anonymous
Date: 2006-04-04
Time: 04:54

Re: Multi column with one array

Thanks Mr Skrol29,
Because my table structure too complex. But I fixed and it work well. Thanks.