creating dynamic table header
<p>i am developing monthly report of attendance sheet of a class.
so for that i am  thinking to create header dynamically (limit of loop will be the no of days in a month, which i am getting from javascript code) so can ne one pls suggest me with the function to print this kind of table .
this is my function to get number of days in a month </p>

<pre><code>function daysInMonth(month, year) {
    return new Date(year, month, 0).getDate();
}
 {
 var month='5';
 var year='2009';
var loop=daysInMonth(month, year)
}
</code></pre>
