$cnt = 1;
while ($content = SQL_FETCHARRAY($result)) {
// Prepare data for the template
- $content = array(
- 'cnt' => $cnt,
- 'userid' => $content['userid'],
- 'points' => $content['points'],
- 'last_online' => generateDateTime($content['last_online'], 2)
- );
+ $content['cnt'] = $cnt;
+ $content['last_online'] = generateDateTime($content['last_online'], 2);
// Load row template
$OUT .= loadTemplate('member_bonus_row', true, $content);