if (SQL_NUMROWS($result_main) > 0) {
// At least one sponsor found!
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($content = SQL_FETCHARRAY($result_main)) {
// Transfer data to array
$content = array(
'id' => $content['id'],
- 'sw' => $SW,
'gender' => $content['gender'],
'surname' => $content['surname'],
'family' => $content['family'],
// Load row template
$OUT .= loadTemplate('admin_list_sponsor_row', true, $content);
- $SW = 3 - $SW;
- }
+ } // END - while
// Free memory
SQL_FREERESULT($result_main);