$query = $db->simple_select("users", "username, uid", "1=1 GROUP BY username HAVING count(*) > 1");
| $query = $db->simple_select("users", "username, uid", "1=1 GROUP BY uid, username HAVING count(*) > 1");
|
while($user = $db->fetch_array($query)) { $db->update_query("users", array('username' => $user['username']."_dup".$user['uid']), "uid='{$user['uid']}'", 1);
| while($user = $db->fetch_array($query)) { $db->update_query("users", array('username' => $user['username']."_dup".$user['uid']), "uid='{$user['uid']}'", 1);
|