Code: Select all
while ($topic = $db->sql_fetchrow($result))
{
$template->assign_block_vars('topic', array(
'TOPIC_ID' => $topic['topic_id']
));
while ($post = $db->sql_fetchrow($result))
{
$template->assign_block_vars('topic.post', array(
'POST_ID' => $post['post_id']
));
}
}
Code: Select all
<!-- BEGIN topic -->
<!-- END topic -->
Code: Select all
<!-- BEGIN topic.post -->
<!-- END topic.post -->