$result = $db->sql_query("INSERT INTO ".$user_prefix."_users....
After that line put in:
Code:
$res_id = $db -> sql_query("SELECT user_id FROM ".$user_prefix."_users ORDER BY user_id DESC");
list($new_uid) = $db -> sql_fetchrow($res_id);
$db -> sql_query("UPDATE ".$user_prefix."_users SET newsletter='1' WHERE user_id='$new_uid'");
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum