#native_company# #native_desc#
#native_cta#

Clumsy quickie on how to format ur td/tr output

By Eli BRM
on October 15, 2001

$count=0;
function output($array,$index)
{
print "<table>";
   foreach($array as $field)
     {
       if($count==0){print "<tr>";}

       print "<td>$field</td>";
    
       if($count==$index){print "</tr>";$count=0;}
     }  
print "</table>";
}

If You need to display a certain number of columns in your output, just pass that number throught $index.