You do not identiy which user you are goinf to activate
echo "<a href='users.php?do=activate'>Activate</a><br><br>";
and even if you did, you updated the variable on each row read
$internal_username = $myrow["username"];
so it's value is always going to be the last one you read.