I have a script that generates the UL LI statements, and creates a single column list, now I need to modify that so instead of a long list, I divide it in several columns, each with 10 elements until the end.
for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
$content = '';
$content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= '</a></li>' . "\n";
echo $content;
}
What I am trying to figure out is how to insert some if statements in a way I can create the columns.
Right now the output is:
Col1
first second third fourth fifth sixth . . . twentieth
What I want is:
Col1 Col2 Col3 ... Col6
first 11th 21th nth . . . 10th 20th 30th