Hi, I'm trying to display the content of my web to format like this:
First Five teaser node and display the rest of content like a one list with only the date and title.
I have seen in the forum something like this, and I think that it can be OK, but ¿Where and how do I insert this code?

<?php $nlimit = 5; ?>
<?php $result1 = db_query("SELECT n.nid, n.created FROM {node} n WHERE n.status = 1 ORDER BY n.created DESC LIMIT $nlimit"); ?>
<?php while ($node = db_fetch_object($result1)) {$output .= node_view(node_load(array('nid' => $node->nid)), 1);}; ?>

<?php $nids = array();  ?>
<?php  while ($node = db_fetch_object($result1)) {
  $output .= node_view(node_load(array('nid' => $node->nid)), 1);
  $nids[] = $node->nid;
}?>
<?php $exclude = implode(',', $nids); ?>

<?php print $output; ?>


<?php $result2 = db_query("SELECT n2.created, n2.title, n2.nid FROM drupal_node n2 WHERE n2.status = 1 ORDER BY n2.changed DESC ",$exclude); ?>
<?php $output2 .= "<div class=\"item-list\"><ul>\n"; ?>
<?php $output2 .= node_title_list($result2); ?>
<?php $output2 .= "</ul></div>"; ?>
<?php print $output2; ?>

thanks.

Salva
PD: Sorry for my english