get the field names straight from the db table
<p>I’m building a database driven website using WAMP</p>

<p>I have database with table called userinfo with the following field names 
DateTime  DomainName  ComputerName  UserName  NetworkSettings.</p>

<p>And I have a PHP script with a HTML table</p>

<pre><code>echo "&lt;div id='tableheading'&gt;\n";
echo "&lt;table class='data' border='1'align='center'&gt;\n";
echo "&lt;tr&gt;\n";

echo "&lt;th&gt; DateTime &lt;/th&gt;
echo "&lt;th&gt; DomainName &lt;/th&gt;
echo "&lt;th&gt; ComputerName &lt;/th&gt;
echo "&lt;th&gt; UserName &lt;/th&gt;
echo "&lt;th&gt; NetworkSettings &lt;/th&gt;
</code></pre>

<p>How do I get the field names straight from the database?</p>
