The start_td command is just like the <TD> command in raw HTML: it doesn't contain actual text, just property settings like "align=left." So, your code should look like this for a table data cell:
print $query->start_th({-width=>'150', -align=>'center', -colspan=>'2'}), "COACHING STAFF","\n", $query->end_th;
Of course, I'm not an expert at the CGI.pm and could very well be wrong about including text in the start_th. But if you include the text in the directive, you may get yourself into the situation you were in before of directives getting intertwined with your while statement. In short, I'm not giving you advanced advice here, but simple and managable ideas for keeping your sanity. So, feel free to ignore me, as others will probably trump my post.
That's Spenser, with an "s" like the detective.
In reply to Re: Using the mysql database columns as the table header.
by Spenser
in thread Using the mysql database columns as the table header.
by mnlight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |