while (list($var1, var2, var3) = $db->sql_fetchrow($result)) {
[i]this code gets run as long as the while routine returns true (as long as there is data coming from the database)[/i]
$cpgtpl->assign_block_vars('block_label', array(
'S_VAR1' => $var1,
'S_VAR2' => $var2,
'S_VAR3' => $var3
));
} |