I did not realize that, and that's almost certainly the problem! All right, so this block of code: $uid = $bitfield = $options = ''; $allowed_bbcode = $allowed_smilies = $allowed_urls = true; generate_text_for_storage($row['pf_' . $used_ident], $uid, $bitfield, $options, $allowed_bbcode, $allowed_sm...