This tutorial will show you how to display yout query results in a horizontal format x number of columns without loosing (x)html compliance. It may look slightly more complicated than others you may have seen, but this example provides full html and xhtml compatibility by cloasing all end tags and properly nesting td and tr.