sql_query($sql); if ($row = $db->sql_fetchrow($result)) { do { $sql = "UPDATE {$table_prefix}users SET user_email_hash = " . (crc32(strtolower($row['user_email'])) . strlen($row['user_email'])) . ' WHERE user_id = ' . $row['user_id']; $db->sql_query($sql); $start++; } while ($row = $db->sql_fetchrow($result)); echo "
Batch -> $start\n"; flush(); } else { $start = 0; } $db->sql_freeresult($result); } while ($start); echo "

Done

\n"; ?>