here, try this, do a search for "SELECT userid" tell you come to the second "SELECT userid" (it should get to the one that drops down)
replace
SELECT userid down to
AND userid <> with:
PHP Code:
SELECT userid
FROM user
WHERE username='".addslashes(htmlspecialchars($ausername))."'
AND userid <> $userid")) {
plus, before replaceing, you should check to make sure the code is the same of above and if not, then replace it with that. hope this works