Actually I was already doing
PHP Code:
if (something)
{
do something
}
for the brackets, but realised through reading here that doing it that way is easier to read.
For the variable names, I started doing that after reading this forum, and reading some crit on other scripts about good variable names.
Awuehr, I completly forgot about the caption, thanks for reminding me, I've got it in and working now.
About the <th> element, according to the W3C page, the <th> element is only for the header, although it doesn't prevent validation if it's in the foot or body.
Still trying to get the second row of a header or footer working, having a little trouble outputting it.
*Edit* OK, found out why i was having trouble, I was outputting the footer cells in the header, and not the header cells. The footer cells were outputting correctly, I just hadn't added a second row. Yay for copy+paste...
