This is my Template
Remember, essentially, the Template must contain
<!--BEGIN TEMPLATE --> and <!--END TEMPLATE --> Tags
<!--BEGIN LOOP --> and <!--END LOOP --> Tags
<!--BEGIN DATA --> and <!--END DATA --> Tags
The Template area describes, what is part of our template, HTML outside this area will be ignored (e.g. when you need to insert this template as a subtemplate into a different main template, it's not supposed to have <HTML> tags.
The DataAreas inside the LoopArea represent one data set each. In this case, the LoopArea holds four data-sets. In case the returned result returns more data-sets the LoopArea holds, the LoopArea will be copied and provides 'space' for another four elements. Give it a try. Usually, the LoopArea would be one <TABLE>-row, however, if you want to have e.g. switching colours for each second row, include two <TABLE>-rows, with different background-colours.
Placeholders can be field-names as specified in your SQL query, or values set by the set_global_container method as shown in the example index.php.
Sorry I can't go any deeper in explaining and for lack in (english) comments in the code, I guess the whole stuff is pretty self explaining.
Cheers, Thomas Brandl.