using PHP foreach loop to add ID's to table columns
<p>I am looking to add column IDs to a table created by a foreach loop like this.  Help is appreciated!:</p>

<pre><code>echo "&lt;h1&gt;Table: {$table}&lt;/h1&gt;";
echo "&lt;table border='0'&gt;&lt;tr&gt;";

echo "&lt;/tr&gt;\n";
// printing table rows
while($row = mysql_fetch_row($result))
{
    echo "&lt;tr&gt;";

    // $row is array... foreach( .. ) puts every element
    // of $row to $cell variable
    foreach($row as $cell)
        echo "&lt;td&gt;$cell&lt;/td&gt;";

    echo "&lt;/tr&gt;\n";
</code></pre>

<p>Thanks,
Mike </p>
