Hello,

I have a small script or a dashboard that im working on that displays the col title and a count below the title.
example:
Col1 Col2 col3 col4 col5
3 5 3 8 2
Col6 Col7 col8 col9 col10
3 5 3 8 2

As of now the script displays one below the next.
What I like to do is:
display the first 5 cols cross the screen. if the col number reaches 5 repeat the same if there are more records to display below existing display.

PHP Code:
$col 0;
echo 
'<table border="1">';
foreach(
$displayDevice as $key1=> $value)
{    if (
$value 0)
    {    if(
$col 4)
        {    
$col++;
            echo 
"<tr><td>" $key1  "</td></tr>"
            echo 
"<tr><td>" $value "</td></tr>";
        } else { 
$col 0;}
    }
}
echo 
"</table>"
Any thoughts on this?

Thanks